how do i get current status of issue jira search api

chakravarthi pottem June 29, 2017

We are getting list of issues in a project using search rest api using a connector service(rest/api/2/search). We are passing value *all to fields param but we do not see status in the response. I also tried by setting fields param to just 'status' and that also did not help.  Can you please let us know how do we get status of the issues using the api?

 

Please not I am able use search query with status for filtering but i am not able to retreieve the status

1 answer

2 votes
somethingblue
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 29, 2017

Hi Chakravarthi,

I would check a couple things and see if they work out.  If they do you'll want to look at the connector.

First try it in the application itself:

http://localhost:8075/rest/api/2/issue/ISSUE-2?fields=status

or

http://cloudURL/rest/api/2/issue/ISSUE-2?fields=status


Next, I would try curl or something such as Postman to test the query.  Here is an example curl statement:

curl -u UN:PW -X GET -H "Content-Type: application/json" http://localhost:8075/rest/api/2/issue/ISSUE-2?fields=status



Cheers,

Branden


chakravarthi pottem June 30, 2017

Hi Branden,

Thank you for the help!! It was mistake at my end. I had created status as single value property at my end while it is not. I corrected it my end and it works perfectly for me

 

 

somethingblue
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 30, 2017

Hi Chakravarthi,

I'm very happy to hear it's working for you now! 

Cheers,

Branden

Suggest an answer

Log in or Sign up to answer