how do i get current status of issue jira search api

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

1 vote

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


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

 

 

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
Community showcase
Published yesterday in Statuspage

194 years of downtime: looking back on incident data from 2018

Statuspage customers logged more than 194 years of collective incidents in 2018. That’s a whopping 87% increase from the  104 years logged in 2017 , and we aren’t even through December yet....

41 views 1 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you