Forums

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

Macro user : display jira issue and create link

David Coudron March 11, 2021

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

0 votes
David Coudron March 11, 2021

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
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.
March 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".

David Coudron March 12, 2021

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
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.
March 12, 2021

Oh okay, I see.

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

David Coudron March 15, 2021

No problem, thank for you reply !

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
6.6.1
TAGS
AUG Leaders

Atlassian Community Events