...
To build the report shown in the Result section above, follow these steps:
Create a new Confluence page, add a Reporting macro, and give the page a suitable title. Let’s set up the parent page query.
In the Query section on the left, type set up the parent page query by typing the Confluence Query Language (CQL) syntax to find the parent page. For this example, use:
type=page AND title="Get Started"
Click Search to confirm the query matches your parent page.Now let’s expand to retrieve child and descendant pages. In the Add Expansions section, check these boxesthe following boxes to retrieve child and descendant pages:
children > page
descendants > page
Now, let’s start building the columns of your report. To display the Parent page title in the first column. Go , go to the Add report blocks section to add the first block, which will also be your first column too.
Go to Add Report Blocks, select Basic, then Add block.
For Block title, type Parent page, and set the Value to
content.title
.
Look at the screenshot to see how the block’s settings and preview should appear:
For Add another block for the Direct Children Countcolumn, add another block, title it Direct Children Count, and set the Value to
content.children.page.size
Repeat creating a Finally, add the block for the third column, title it All Descendants Count, and set the Value to
content.descendants.page.size
...