Children Pages by Labels

Manuel Staebler
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 6, 2012

Dear Community,

I search an Macro that can output the child Pages by filtering on labels.

I have not yet found anything in forums. maybe an idea for a new function?

Greetings

2 answers

1 accepted

4 votes
Answer accepted
Sandro Herrmann [Communardo]
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.
December 28, 2012

Hi,

you simply can write a user macro in your global administration. here is the code

## @param label:title=label|type=string|required=true|desc=The label of the childpages
 
<ul>
#foreach( $child in $content.children )   
    #foreach( $childlabel in  $child.labels )   
        #if($childlabel.name == $paramlabel )
            <li><a href="$req.contextPath$child.urlPath">$child.title</a></li>
        #end
    #end
 
#end
</ul>

0 votes
AgentSmith
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 28, 2012

Greetings!

Please consider directing this feature request to https://jira.atlassian.com/ .

In doing so, you can vote for it and receive emails for status updates.

Cheers,

Jason | Atlassian

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events