What condition do I have to set in a web-item to check the pages hierarchy?

Hi

I wrote a web-item that appears as a menu entry in the Tools menu but it only should be visible if I am in the root page of a space. Another web-item should only be visible if I am not in a root page and third if the current page has children.

Is there something like a HasParentCondition / HasChildrenCondition?

1 answer

1 accepted

Had to create my own "HasChildrenCondition" and "IsSpaceCondition" as there are no conditions of this kind provided out of the box.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

850 views 23 12
Join discussion

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