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
@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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.