List labels under a page (not space).

I want to list all labels under a page (not space) and all its childs pages . I am aware of the listlabels macro, but you can only specify which space, not page.

Thanks in advance.

1 answer

You can generate a set of the labels used on all descendent pages with the reporter plug-in. It will not be a single unique set of labels, however. Maybe it gives you what you are looking for.

--------------------

{report-table} 

{content-reporter:spaces=@self|types=+page|scope=@self > descendents} 
{text-filter:content:labels|minLength=1}
{text-sort:content:labels} 
{content-reporter} 

{report-column:title=Labels}{report-info:content:labels}{report-column} 

{report-table} 
 
-----------------

Thanks for the reply Kevin! I tested the code, but as you stated, it doesn't display single unique set of labels, so it's not quite what I am looking for, but maybe I can find ways to improve it. Thanks again.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

366 views 20 10
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