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 widget could not be displayed.

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
Community showcase
Posted Sep 17, 2018 in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

547 views 7 6
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