How to list all pages with the same label in confluence

Hello,

I have an hierarchy of pages and subpages with many labels.

I want to know if is possible to have a report wich list all pages with specific label ?

Page

|---subPage 1

|------subsubPage 11 with label "lb1", "lb2"

|------subsubPage 12 with label "lb1"

|---subPage 2

|------subsubPage 21 with label "lb2"

|------subsubPage 22 with label "lb2"

In this sample, I want "subPage 1" list all subsubPage with the label "lb1" (subsubPage 11 and subsubPage 12)

In this sample, I want "subPage 2" list all subsubPage with the label "lb2" ( subsubPage 11, subsubPage 21 and subsubPage 2)

4 answers

1 accepted

3 votes
Accepted answer

Are you aware of the contentbylabel macro?

Are you aware of the contentbylabel macro?

No, I am not aware with this macro, but now I am, thank you.

Subsidiary question : My subsubpage have metadata information, is it possible to display them with contentbylabel macro ? And "the must" are to display them into a report of course ;-) ?

I would go with the reporting plugin for anything more involved that just a simple list of pages with a label.

no soucies, my need was not clear for me too

Subpage 1 code :

---

List of subsubpage :
{report-table}
{local-reporter:page:descendents|source=Page}
{content-filter:type=page|labels=lb1}
{text-sort:data:Category|mode=natural|order=ascending}
{local-reporter}
{report-column:title=Test ID}
{report-info:content:title|source=@self|render=wiki|link=true}
{report-column}
{report-column:title=Covered Requirements}
{report-info:data:Covered requirements|render=wiki}
{report-column}
{report-column:title=Description}
{report-info:data:Description|render=wiki}
{report-column}
{report-column:title=Type}
{report-info:data:Type|render=wiki}
{report-column}
{report-column:title=Space Key}
{report-info:content:space > key}
{report-column}
{report-table}

You can use the Page Properties and Page Properties Report macros for that.

The Page Properties macro associates metadata values on a page with a label, and the report macro generates a table of selected metadata values pulled from all pages with that label.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,551 views 25 14
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