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

Can I use a Confluence Variable in the Jira Macro on the same confluence template/page

I would like to create a confluence template where I can enter a variable to get the Jira ID of a task from the user and then use Jira macro to automatically display information from the Jira task on the confluence page.
Is this possible?

The jira sever doesn't seem to understand the query:

jira macro.png

Thx in advance



1 answer

0 votes

Hi @Oliver Lemp , welcome to the Community!

The JIRA-Macro doesn't understand what's on a Confluence page so it can't correspond to any kind of page content including template variables. It requires a JQL query or an issue key as it's designed to pull data from JIRA into Confluence.

You can use variables in a JQL query though. For example,

assignee = currentUser() 

as part of the query will return the issues assigned to the author of the Confluence page.

Starting from there, you may build a JQL query that fits your needs and works in a Confluence template.


Kind regards,


Hi @Nicolai Sibler ,

thank you for your quick response.

unfortunately, this approach cannot solve my problem. Anyway my question with the variable and the jira-macro only referred to a kind of intermediate solution.

My goal is to create a template for the user that can create a site with as little redundant input of existing data as possible on the page from which the template is executed. To do this, I would like to take some data directly from the Confluence page, but also from the associated Jira page into the template.

I probably won't be able to provide this without some development effort, and will first design the template to point out to the user where, what input is required. This should be possible with the variables in Confluence.

Thanks again and best regards

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events