I've been using the /rest/api/2/project/{projectId}/hierarchy endpoint for a while now, and recently I've been getting issues when calling it against a company managed project.
NotFound: 404 Not Found on GET request for
"{jira-site-url}/rest/api/2/project/{company-managed-project-id}/hierarchy":
"{"errors":{},
"errorMessages":["Project with id: {company-managed-project-id} is not simplified."],
"httpStatusCode":{"empty":false,"present":true}}"
For the record, the errorMessages part also has the project id written in a formatted way for some reason (e.g 12345 -> 12,345) but I'm pretty sure that's not important.
I couldn't find any documentation for this type of error. Some research about the "simplified" part pointed me in the direction that this is to do with team vs. company managed projects, which helped me reproduce it, but not much more. Does anyone know of this error and what might cause it?
hey @Nitzan Mass-Ader and welcome to Atlassian Community!
Can you check if your project is using the simplified workflow:
https://support.atlassian.com/jira-software-cloud/docs/use-the-simplified-workflow/
From what I can tell that is what is causing this error:
"errorMessages":["Project with id: {company-managed-project-id} is not simplified."],
Let me know if that works or not?
Best.
Mike
Hey Michael, thank you for the warm welcome!
I've followed the article and checked the Configure Board section -> Columns and under workflow type it indeed says that I'm using the Jira workflow. Does this mean that it does not really matter if the project itself is Team Managed or Company Managed? Or is there a connection of the workflow used with the Team/Company Managed property of a project?
My next question will be, is there another way to get the hierarchy of a project using the Jira Workflow?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Nitzan Mass-Ader the API is only working for team-managed-project , that's intentional , for company-managed-project , check /rest/api/3/issuetype/project?projectId=<projectId>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This solves this. Thanks!
Perhaps this should be documented in the API documentation.
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.