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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Variables in macros in templates?


We want to create a Confluence template for a page with various reporting info from one single Jira "initiative" item. The only thing that shall change betweeen the different to be created pages is the ID of the initiative in the JQLs within the macros.

Sadly, I haven't found out yet how to place a variable in a query within the "Jira issue" and "Jira chart" macros.

Can you please point me to the respective info?

Thanks in advance!


1 answer

0 votes
Srinatha T Atlassian Team Feb 24, 2022

Hi @Faros65 ,

Welcome to Atlassian community. 

I recommend you to go through this community post Insert-the-jira-issues-macro and below KB article


I hope above info help. Have a nice day.


Srinath T

Hi Srinatha,


thanks for your answer. Unfortunately, neither of the two links above shows me how to put a variable into the macro. Only that I cannot add a variable to the "Create from template" button.

To be more precise with my requirement:

  • The page template has multiple "Jira issue" and "Jira chart" macros.
  • Each of these macros contains a JQL that retrieves the specific info related to the _same_ Jira item (plus some settings).

Example JQLs:

  • key = INI-123
  • project = "Milestone Management" and "Initiative of Milestone" = INI-123 order by "End Date"

This "INI-123" appears in all used macros on the page. What I now want for my template is to replace "INI-123" with a variable. When someone then creates a page from this template, he or she must provide the variable's value and all JQLs are automatically completed and call the correct info.

Any idea how I can achieve this?


Like Timothy Padgett likes this

Obviously not :-(

Does anyone find a solution for this. We need them too.

Like Timothy Padgett likes this

Same here, it would be great if we could inject info/page variables into a macro similar to the Add Page magro's use of %injectable%/

Like Timothy Padgett likes this

Not sure what you can do with page variables but i have not found any way of using them usefully yet.

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events