It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can this macro list the content list of a specific parent page instead of the complete space?

Mijal Segal Apr 27, 2016

This question is in reference to Atlassian Documentation: Content Report Table Macro

I would like to track the recent updated pages, but only under a certain parent page. Is it possible to adapt this macro to do that? or is there another macro available for it?

1 answer

0 votes

I do not know if your use case can be solved by the Content Report Table Macro.

Maybe you could do this with the Content By Label Macro which has the option to restrict on an ancestor page? This feature seems only available since Confluence 5.8 ...

If the Content By Label Macro cannot meet the requirements of your use case, the Display Table Macro of the (commercial) projectdoc Toolbox Add-on is also able to select pages with a given page as ancestor. But you need to use the Document Properties Marker Macro to define the properties of the pages. Without this macro a page will not be part of the result set. This is similar to the Page Properties Macro and the Page Properties Report Macro.

If you decide to give the projectdoc Toolbox a try, this is what the query looks like to select the children of a page with the name 'Macros' and sort them by their modification date with the Display Table Macro:

  • Select: Name, Last Modification Date
  • Where: $<AncestorNames>=[Macros]
  • Short By: Last Modification Date§-

Some notes on the query:

  • AncestorNames and Last Modification Date are artificial properties that are automatically available
  • $<...>=[...] is just the syntax to force an exact match; AncestorNames=Macros would also have "My favourite Macros" in the result list (you can also select on page IDs by the use of AncestorIds)
  • Sort By: § is the normalizer for values so that dates are not sorted alphabetically
  • Sort By: - simply indicates descending order

Search Tips provides information about search options with the projectdoc Toolbox.

In Page Properties and Document Properties we compare Confluence page properties with projectdoc document properties.

Biased alert: I'm one of the authors of this add-on. smile

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase

Friday Fun: What's your best vacation planning hack?

Let's face it, work can be challenging but fulfilling, especially when you enjoy the challenges thrown at you.  However for me, nothing compares to going on vacation (or holiday as some of you m...

547 views 27 4
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you