How to list all pages with the same label in confluence

fevre romain January 19, 2012

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
Answer accepted
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 19, 2012

Are you aware of the contentbylabel macro?

0 votes
Gabrielle Gagnon September 29, 2013

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.

0 votes
fevre romain January 19, 2012

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}

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 19, 2012

Are you aware of the contentbylabel macro?

fevre romain January 19, 2012

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 ;-) ?

Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 20, 2012

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

fevre romain January 22, 2012

no soucies, my need was not clear for me too

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events