Hello.
I am trying to get the confluence links of each JIRA ticket. The Confluence section appears in each Jira ticket if the ticket is mentioned in a confluence page (please image below for reference).
Is there a way to get the confluence links via the Jira API?
Thank you
ccurti
April 21, 2023, 6:29am
2
Hi @AngelRefamonte ,
Welcome to the Atlassian Developer Community.
Have a look at the GET /rest/api/3/issue/{issueIdOrKey}/remotelink
REST API endpoint.
This is how the response looks like for a page linked to a Jira issue like in this screenshot:
[{
"id":10002,
"self": "https://<site>.atlassian.net/rest/api/3/issue/<issueKey>/remotelink/10002",
"globalId":"appId=8d1313b9-2c4f-33b2-bd26-eaf3af27b1be&pageId=472481793",
"application": {
"type":"com.atlassian.confluence",
"name":"Confluence"
},
"relationship":"mentioned in",
"object": {
"url":"https://<site>.atlassian.net/wiki/pages/viewpage.action?pageId=472481793",
"title":"Page",
"icon":{},
"status":{"icon":{}}
}
}]
Cheers,
Caterina
1 Like