I've seen lot's of documentation and tutorials for how to create issue links to other issues in Jira. However, I'm not finding any documentation for how to create a link to a Confluence page with the REST API. Does anyone have any experience doing this?
Hi @Davin Studer ,
I believe these need to be created as remote links, see here.
Request body will probably look something like this:
{
"globalId": "appId=your-confluence-app-id&pageId=your-confluence-page-id",
"application": {
"type": "com.atlassian.confluence",
"name": "your-confluence-name"
},
"relationship": "mentioned in",
"object": {
"url": "your-confluence-base-url/pages/viewpage.action?pageId=your-confluence-page-id",
"title": "Page",
"icon": {},
"status": {
"icon": {}
}
}
}
Thanks. I actually found this as well by looking at the Jira REST browser and did a GET on an issue that I knew had a Confluence link and looked at the returned JSON. After a little trial and error I was able to get it working.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How do you get the Confluence App ID? I am trying to create a remote issue link in a forge app while handling an issue event in Jira, but can't find a way to retrieve the Confluence App ID.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.