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

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
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
Published yesterday in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

66 views 0 4
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