Does @parent work in the page tree macro?

This question is in reference to Atlassian Documentation: Page Tree Macro

I'm trying to use the page tree macro and I can't get the @parent value to work for the root parameter.

Ideas?  All that shows is the page with the page tree macro and others at the same level in the hierarchy.

1 answer

0 votes
Steven Behnke Community Champion Sep 09, 2016

Can you explain the desired output? That appears to be working exactly as intended.

image2016-9-9 15:2:35.png

  • '@parent' — will include all pages under the parent of the current page, including the current page.

The way I read the docs, I expected that if I put a page-tree macro in the page (in your example) called "testing page-tree macro" and specify '@parent' as the root - that I would see the page "two reports" and all its child pages in the resulting list. The way it works it seems no different than using '@self'. So, how are self and parent different? I'm not getting it. But, this is my first time trying to use this macro.

I agree, Pamela.

  • '@parent' — will include all pages under the parent of the current page, including the current page.

Using the description of "@parent" above, shouldn't we see "two reports" (parent of "testing page-tree macro") included in the page tree?

Ideally it would be great if this macro would allow you to specify the level of ascendants and descendants. That way on each page of the hierarchy the reader could navigate the page structure, of these specific pages,  without having to rely on the sidebar.  

Suggest an answer

Log in or Sign up to answer
Community showcase
Published yesterday in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

213 views 0 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you