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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

191 views 18 7
Join discussion

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