Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

JIRA Rest API for statuses returns incomplete list

Marcin Wisnicki June 24, 2015

I'm trying to get list of all statuses defined in JIRA by accessing rest/api/2/status.

It seems to work correctly on production instance but on my development instance, started via atlas-run-standalone --product JIRA --version 6.4.3, the result list is incomplete - contains only 3 out of 7 statuses defined.

 

Trying to access status directly by Id (same as on secure/admin/ViewStatuses.jspa page) with rest/api/2/status/1 returns error 404: The status with id '1' does not exist.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Volodymyr Krupach
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 24, 2015

Hi Marcin,

Reproduced the same behavior for my JIRA. Then I went to Administration -> Issues -> Workflows and reviewed diagrams for active and inactive workflows.

It appears that "rest/api/2/status" returns statuses that are associated with active workflows. I was able to get all statuses by creating a new project and associating it with a workflow that was inactive.

TAGS
AUG Leaders

Atlassian Community Events