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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,458,145
Community Members
 
Community Events
176
Community Groups

How to create an issue link to a Confluence page with the REST API

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?

1 answer

1 accepted

1 vote
Answer accepted
Hana Kučerová Community Leader Apr 12, 2022

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.

Like Hana Kučerová likes this

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.

Suggest an answer

Log in or Sign up to answer