Displaying a List of Only Grandchildren Pages

Scenario

The Children Display macro provided by Confluence allows you to display all children pages of a specified page. But it won't allow you to display ONLY the children of the children pages, (what we call "grandchildren" pages), without the parent pages.

This recipe shows you how to display ONLY the grandchildren pages, including some extra details such as when it was last edited and who last edited it.

(This feature is only available from Reporting 6.14.0 and onwards.)


Result


Recipe

Ingredients

Add-ons

Reporting

Platform

Level

INTERMEDIATE

Estimated time

10 minutes

Macros

Suppliers

Storage format

Macro structure

You can recreate the example in the editor view:

Steps

  1. Create a Report List macro.
    Set the Depth parameter to "all".

  2. Within the Report List macro, create a Local Reporter macro.
    Set the Key to content:grandchildren.
    Set the Source parameter to the page you want to list the grandchildren pages.

  3. Within the Local Reporter macro, create a Date Sort macro.
    Set the Key to content:modification date.

  4. Back within the Report List macro, create a Report Body macro.

  5. Within the Report Body macro, create a Report Info macro. Set the Key to content:title and make sure the Link to Item parameter is checked.
    Immediately after that, type in "(Edited on ".
    And immediately after that, create another Report Info macro. Set the Key to content:modification date.
    And also immediately after that type "by".
    And then create another Report Info macro, this time setting the Key to content:modifier and making sure the Link to Item parameter is checked.