Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot get the status list from my Jira API instance

Jhon Alexander Holguin Barrera September 25, 2018

I am trying to get all the status from my Jira instance using the API (v2, v3), from my Addon but I am getting an empty array, tried with my normal user and get the same response, I checked the permissions and they have the "Browse Project" permissions, any help will be appreciated.

Endpoint tested: /rest/api/2/status

 

Thanks, Regards 

 

2 answers

1 accepted

0 votes
Answer accepted
Prakhar Srivastav {Appfire}
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.
September 25, 2018

@Jhon Alexander Holguin Barrera

It should return all the status that are visible to the user. 

What authorisation you are using for your request?

Try /rest/api/2/project/{projectIdOrKey}/statuses for project based status and see what response you get. But authorisation is the key here.

 

 

Regards

Prakhar

Jhon Alexander Holguin Barrera September 26, 2018

Hi Prakhar, seems that it was related with the active workflows, I started a Jira instance from scratch, but it doesn't activate any workflow with some projects that I created,  Jira doesn't have a Workflow by default activated

Thank you 

Regards

Prakhar Srivastav {Appfire}
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.
September 26, 2018

@Jhon Alexander Holguin Barrera

 

If you create a project then JIRA must assign a workflow to it and then it will become activated.

Let me know if you are facing any trouble.

 

Regards

Prakhar

0 votes
Derek White
Contributor
July 2, 2020

Just wanted to make this clear: this API is documented as returning ALL statuses that your user has access to, but actually returns all statuses assigned to an (active?) workflow that your user has access to.

Any logical human being would compare the results of this API call to the list of Statuses on the Administration > Issues > Statuses page and be confused by the difference.

Suggest an answer

Log in or Sign up to answer