Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do you embed the content by label macro in a template?

Trying to create a "Q&A" template that will use the content by label macro in the bottom to link to related articles. But I can't figure out how to get the macro to auto-populate based on what links are added to the article in the setup wizard when a user selects the template. 

I feel like it has to be a combination of using the macro and the variable feature in the template editor, but I haven't been able to figure it out. The troubleshooting and how-to article blueprints use a variable $contentbylabelmacro and I tried adding that in, but it didn't work either. I know I can just put the macro in with the generic Q&A label to populate other articles of that type, but I also want it to have links to articles labeled with specific product names based on shared label identifiers. 


Any ideas?

2 answers

1 accepted

1 vote
Answer accepted
Shannon Atlassian Team Aug 07, 2019

Hello Andrew,

Welcome to Atlassian Community. It's nice to meet you.

It's not possible to use macros in templates by applying variables. There is a feature request for this currently:

  • CONFSERVER-3324 Support replacement of page template variables in wiki links and macro parameters (Server)
  • CONFCLOUD-3324 Cloud version of the same request above

Please vote on the request and you will automatically be added to the list of watchers and receive updates on it.

Let us know if you have any questions about this.



This post is over a year old, is it still a current request?  I am trying to add a label to my Template so every new space created from it has the label.  Am I understanding the feature correctly?

Please also consider casting a vote for related request: CONFCLOUD-38181 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,757 views 8 32
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you