Cannot create project scoped status

Pokemon Blues
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 19, 2023

Hello,

 

I'm trying to use the endpoint

https://<MY_DOMAIN>.atlassian.net/rest/api/3/statuses

to bulk create some project specific status

Here are my projects:

 

{
"expand": "description,lead,issueTypes,url,projectKeys,permissions,insight",
"self": "https://<MY_DOMAIN>.atlassian.net/rest/api/3/project/10004",
"id": "10004",
"key": "TEST2",
"name": "Test2",
"projectTypeKey": "software",
"simplified": false,
"style": "classic",
"isPrivate": false,
"properties": {}
}
and when I try to use the API with this payload
{"scope": {"project": {"id": "10004"}, "type": "PROJECT"}, "statuses": [{"description": "This issue is being actively worked on at the moment by the assignee.", "name": "NewStatus", "statusCategory": "In Progress"}]}
I get this error:
{"errorMessages":["We couldn't find project 10004 in this scope."],"errors":{}}
I've upgraded from the free level to the standard level and setup project admin and project browsing for the org level admin, but no luck.
Any advice?

1 answer

0 votes
Matthias Gaiser [K15t]
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 19, 2023

Hi @Pokemon Blues

welcome to the Atlassian Community.

In Jira there are two types of projects: team-managed (aka next-gen) and company-managed (aka classic) projects. You can learn more about them in the documentation.

In your project response, there's the information "style": "classic" which identifies your project as a company-managed project. Company-managed projects only support global statuses not project-specific ones. Therefore, you simply can't do that.

What you can do:

  • Create global statuses
    Remove the project scope and add GLOBAL as type inside the scope as described in the docs.
  • Use a team-managed project
    Create a new project which is a team-managed one and move any existing issues to the new one.

Hope that helps,
Matthias.

Pokemon Blues
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 21, 2023

Thank you so much for this response.  I'll try it today and if it works, I'll accept your answer!  Thanks again!

Like Matthias Gaiser [K15t] likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD Trial
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events