Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Oliver Lemp
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!
July 26, 2022

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

Best

Oliver

1 answer

0 votes
Nicolai Sibler
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.
July 28, 2022

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,

Nicolai

Oliver Lemp
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!
July 29, 2022

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
TAGS
AUG Leaders

Atlassian Community Events