Forums

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

User macro to display single Jira issue not working as expected

Maree Milne July 30, 2018

Hi,

I have a user macro which works as a wrapper for the JIM macro, allowing us to inject variables when creating pages.

It works brilliantly except that it does not create a reciprocal link from the Jira issue to the Confluence page and I'm not sure why not. This is the relevant part of the macro:

<ac:structured-macro ac:name="jira" ac:schema-version="1" >
<ac:parameter ac:name="server">Jira</ac:parameter>
<ac:parameter ac:name="cache">false</ac:parameter>
<ac:parameter ac:name="key">$body</ac:parameter>
</ac:structured-macro>

Does anyone have any ideas? I think it was actually working before we upgraded to Confluence 6.8.2 and Jira 7.9.2 as no one had raised an issue before, but not sure.

Thanks

Maree

 

1 answer

0 votes
Zak Laughton
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 6, 2018

Hi Maree!

Unfortunately, I was unable to get this to work either. It doesn't work in Confluence 6.9.1 with Jira 7.9, but it also didn't work when I tested as early as Confluence 5.10.8 with Jira 7.2.0. I'm not sure this was ever possible with a user macro. My guess is there's some code in the Jira plugin in Confluences that works behind-the-scenes with the macro to create that reciprocal link.

Maree Milne August 6, 2018

Thanks Zak, that's what I figured, but as the user macro is really acting as a wrapper around the existing Jira macro I was hoping to find some way to trigger it... 

Alex van Vucht (GLiNTECH)
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.
January 15, 2019

Yes, Jira links aren't generating either when using wiki markup in a $action.getHelper().renderConfluenceMacro() call.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events