It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

0 votes

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 

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
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you