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

Add a link to a jira issue in a confluence page

Nikolas Burkman February 3, 2023

 

I am using a software product called Zapier to automate the creation of a Jira issue and then a Confluence page as part of an internal process. The desired outcome is for the linked Jira issue to be formatted like the second screenshot, and not like the standard web URL in the first screenshot. I am using Confluence Storage Format to do the formatting, but cannot seem to find an option that will allow for the link to be formatted to match the second screenshot. 

The formatting I am using would be 

<a href="https://test123.atlassian.net/browse/{{181128035__key}}">https://test123.atlassian.net/browse/{{181128035__key}}</a>

with {{181128035__key}} being the key being passed for the Jira issue in Zapier. 

Any ideas on how I can accomplish this type of formatting using Confluence Storage Format?

 

Screen Shot 2023-02-03 at 2.53.19 PM.png

 

Screen Shot 2023-02-03 at 2.54.09 PM.png

 

Thanks

1 answer

0 votes
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 4, 2023

Hi @Nikolas Burkman and welcome to the community,

Did you happen to use the following endpoint?

https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-body/#api-wiki-rest-api-contentbody-convert-to-post

POST /wiki/rest/api/contentbody/convert/{to}

It states:

QUERY PARAMETERS
spaceKeyContext

string

The space key used for resolving embedded content (page includes, files, and links) in the content body. For example, if the source content contains the link <ac:link><ri:page ri:content-title="Example page" /><ac:link> and the spaceKeyContext=TEST parameter is provided, then the link will be converted to a link to the "Example page" page in the "TEST" space.

contentIdContext

string

The content ID used to find the space for resolving embedded content (page includes, files, and links) in the content body. For example, if the source content contains the link <ac:link><ri:page ri:content-title="Example page" /><ac:link> and the contentIdContext=123 parameter is provided, then the link will be converted to a link to the "Example page" page in the same space that has the content with ID=123. Note, spaceKeyContext will be ignored if this parameter is provided.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events