Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get confluence link in jira issue through the Jira API

Alexandre Bacchus
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 29, 2021

Hello Jira community

I am trying to get the Confluence link referenced in a Jira issue. When I request all elements of a specific issue I can't find the location of the key that corresponds to the confluence link :

import requests
from requests.auth import HTTPBasicAuth
import json

url_base = 'https://happsproject.atlassian.net/rest/api/2/search?jql=issuekey = "DT-1554"'

auth = HTTPBasicAuth("XXX@XXX.com", "YYYYYYY")

headers = {
"Accept": "application/json"
}
response = requests.request(
"GET",
url_base,
headers=headers,
auth=auth
)
res = json.loads(response.text)
res

Can someone help me finding that missing field ?

1 answer

1 accepted

0 votes
Answer accepted
Prince Nyeche
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 29, 2021

Hi,

Are you saying you can find it or you cannot find it? Basically you should be looking at the remote link of an issue to get the confluence link on a Jira issue. I believe that's how you get the link.

Alexandre Bacchus
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 30, 2021

Hi,

Absolutely, my issue was that I couldn't find it. The remotelink endpoint seems to work.

Thanks for responding me.

Suggest an answer

Log in or Sign up to answer