Is it possible to pass variables to an included page?

I would like to be able to define a page that can be included on other pages as a footer. One of the things I would like in this footer is some content by label. Is there a way for me to set the labels that should be used in the content by label macro so that it matches the parent page?

For example, on a page about dogs I would like to display knowledge base articles about dog as well as open JIRAs that are about dogs.

Is this possible/advisable?

1 answer

1 accepted

0 votes
Accepted answer

Use this macro in the included page -

This will show all the related content based on the labels applied for the parent page.


The link you included does not work for me, are you refering to "Content Survey and Reporting"? If so, where can I find documentation for that plugin? I cannot find anything at


Somehow an additional dot came at the end of the link -

Yeah it is 'Content Survey and Reporting'

Unfortunately there is no docs for that.

Thanks for your answer Renjith.

Is it possible to specify a list of spaces (and page types) for the macro?

As an aside, why is this macro packaged with the survey plugin? It does not really seem related and it sounds like something that could be useful in the base product.


Frankly, no idea. Check the code and see the features.

Thanks for your advice.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,095 views 56 8
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