How to retrieve only status field in a project for a specific issue Type

Abhinaya January 15, 2020

https://url/rest/api/2/search?jql=project = LW AND issuetype = Story AND created >= 2020-01-12 AND created <= 2020-01-19 , fields=status

1 answer

1 vote
Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 16, 2020

Hello @Abhinaya 

 

The fields property work with issueId so you need something like this :

https://url/rest/api/latest/issue/ISSUEID?fields=status

 You receive something like this :

{"expand":"renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations","id":"00015","self":"https://URL/rest/api/latest/issue/12000","key":"ISSUEID","fields":{"status":{"self":"https://URL/rest/api/2/status/11404","description":"","iconUrl":"https://URL/images/icons/status_generic.gif","name":"To Do","id":"11404","statusCategory":{"self":"https://URL/rest/api/2/statuscategory/2","id":2,"key":"new","colorName":"blue-gray","name":"To Do"}}}}

Hope this helps 

Abhinaya January 23, 2020

thanks for your response ,

Am pulling Data from jira for the IssueType as Story and i use the below api,

https://url/rest/api/2/search?jql=project = LW AND issuetype = Story AND created >= 2020-01-12 AND created <= 2020-01-19 

But this api returns me back a huge amount of data , i just need the status field .

so i tried with the below API,

https://url/rest/api/2/search?jql=project = LW AND issuetype = Story AND created >= 2020-01-12 AND created <= 2020-01-19 , fields=status

Still i couldn't filter it out.

Like Naresh Padmanabhan likes this

Suggest an answer

Log in or Sign up to answer