Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Get confluence link in jira issue through the Jira API

Edited

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

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.

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
TAGS
Community showcase
Published in Jira Software

👋 Looking for 15-20 volunteers to test Atlassian training content

Hi everyone! Are you interested in beta testing Atlassian University’s newest (unreleased!) training course? We’re looking for 15-20 volunteers to test our newest training course, Basic reporting...

555 views 20 25
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you