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?
Thanks
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.
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.
<ac:link><ri:page ri:content-title="Example page" /><ac:link>
spaceKeyContext=TEST
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.
contentIdContext=123
spaceKeyContext
It looks like you're new here. Sign in or register to get started.