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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Uncategorized

Friday fun: how many celebrates Midsummer holiday or is this a Swedish tradition only?

Any other country that celebrates Midsummer holiday (this friday 22 June)?  

44 views 3 1
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