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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Macro user : display jira issue and create link

Hello,

I create a user macro that display information about a single jira issue with two sections : 

The first with Key, Status, Summary and a second one with the description.

I don't find how I can create a link type "Mentionned in" between my confluence page and the jira issue.

I want the same link we have when we use the native "Jira issue/filter" Macro used for a single issue. 

Here my code :

## @param IssueKey:title=Issue Key|type=string|required=true|desc=DAD-1150

#set($IssueKey = $paramTicketKey)

<p>
<ac:structured-macro ac:name="jira">

<ac:parameter ac:name="columns">key,summary,type,updated,assignee,status</ac:parameter>
<ac:parameter ac:name="serverId">my id</ac:parameter>
<ac:parameter ac:name="jqlQuery">key = POL-5</ac:parameter>
<ac:parameter ac:name="maximumIssues">1</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:name="jira">
<ac:parameter ac:name="columns">description</ac:parameter>
<ac:parameter ac:name="serverId">my id</ac:parameter>
<ac:parameter ac:name="jqlQuery">key = POL-5</ac:parameter>
<ac:parameter ac:name="maximumIssues">1</ac:parameter>
</ac:structured-macro>
</p>

 

Someone can help me ? 

Thanks in advance !

1 answer

I get the storage format code of the native Macro and I used it on my "user macro"

The issue is well displayed but I still don't have the link.

<p>
<ac:structured-macro ac:name="jira" ac:schema-version="1" ac:macro-id="7f6343a3-e485-4e8c-9634-7d6856ac3ae9">
<ac:parameter ac:name="server">My Server Name</ac:parameter>
<ac:parameter ac:name="columns">key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution</ac:parameter>
<ac:parameter ac:name="serverId">My Server ID</ac:parameter>
<ac:parameter ac:name="key">POL-5</ac:parameter></ac:structured-macro>
</p>

 I didn't find any documentation on that... 
Should I do it by API ? Should I include javascript ?

Dominic Lagger Community Leader Mar 11, 2021

can you share us what do you trying to do with a printscreen? 

I don't understand what you mean by "the link".

Hello,

When you mention a single jira issue (with the native macro) you got this button in the top of your page :

Capture.PNG

 

I try to have a the same behaviour whith my own user macro...

Dominic Lagger Community Leader Mar 12, 2021

Oh okay, I see.

I'm not aware of anything to achieve this. Sorry

No problem, thank for you reply !

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
6.6.1
TAGS
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,461 views 7 29
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you