Adding Issue Link to Confluence Page Via Rest API Edited

Hello, I am a customer on jira cloud,


right now when you paste a issue link into a confluence page the macro takes it and links it to jira. In the jira issue you can see it says "mentioned in <Page Name>" with a link to it.

I am using rest API's to create confluence pages, I am looking to add in this exact functionality while I am creating the page.

I have tried this Confluence Wiki format:
{jiraissues:key=S555555-4}

{jira:key=S555555-4} (same result)

This didn't work, while it does show up on the confluence page as expected, the issue doesn't say that it was "mentioned" as expected.

I found this page...
https://confluence.atlassian.com/confcloud/confluence-storage-format-724765084.html

I think the macro section at the top is what I need, but it seems I don't have quite enough rights to see the "View Storage Format" on the *** bar, so I can't find the information I need to make that work.

If anyone could help me that would be great.

I kinda have a work around if need be, but it would be nice if there was a simple soultion to this.

Thanks,

1 answer

1 accepted

This is for anyone who needs this:

 

<ac:structured-macro 
ac:name=\"jira\"
ac:schema-version=\"1\"
ac:macro-id=\"ce876bed-eeb4-4592-9255-a3a216c1d507\">
<ac:parameter ac:name=\"server\">System JIRA</ac:parameter>
<ac:parameter ac:name=\"serverId\">YOUR-SERVER-ID</ac:parameter>
<ac:parameter ac:name=\"key\">YOUR-ISSUE-KEY</ac:parameter>
</ac:structured-macro>

This worked great for me, also, you need "administrators" rights on your account to see it, "confluence-admin" was not enough. And the button to "View Storage Format" was found on the page NOT the edit page.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,792 views 26 10
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you