The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to add "Mentioned in" link in JIRA by using user macro in Confluence

bartekkacz
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 20, 2020

Hi,

I'm trying to create a 2 way connection between Jira and Confluence. The main aim was to create a user macro that gets data from template variable and use it in JIRA query. That part was pretty easy:

<ac:structured-macro ac:name="jira">
<ac:parameter ac:name="server">JIRA</ac:parameter>
<ac:parameter ac:name="key">$body</ac:parameter>
<ac:parameter ac:name="serverId"><server_id></ac:parameter>
</ac:structured-macro>

Where at the end $body is my template's variable value. But...unfortunately the macro itself does not add link to the Confluence page in "Mentioned in" section as the classic macro Jira Issue does. I have no idea how to do it - searched multiple pages without an answer. Do you have any concept? 

Thanks 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Dominic Lagger
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 Champions.
July 21, 2020

Hi @bartekkacz 

I tested your behaviour and can confirm, this doesn't work.

Perhaps it is because the jira issue is loaded dynamically within another macro. 

I'm also not aware of any good workaround, so I'm sorry about that. 

Regards, Dominic

TAGS
AUG Leaders

Atlassian Community Events