Forums

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

Jira API Requests Library-Getting issue properties

Nate Dickinson
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.
February 24, 2023

I'm starting to work with APIs to access Jira data using Python and the requests library. I am focusing on get issue commands to help my understanding of how this can work before branching off. Given the example from the Atlassian documentation, how do I adjust this example to only return the status of an issue? I have authentication working and am getting a response back from the print statement included. 

 

2023-02-24_12-52-34.png

1 answer

1 accepted

0 votes
Answer accepted
Fabio Racobaldo _Herzum_
Community Champion
February 25, 2023

Hi @Nate Dickinson ,

you need just to use fields parameter.

An example should be :

url = "https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}?fields=key,status

Hope this helps,

Fabio

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events