Hi,
I want to set up custom priority scheme on project creation.
I've tried to google it, but without success.
Also I didn't find anything about that on the rest documentation:
https://developer.atlassian.com/cloud/jira/platform/rest/#api-api-2-project-post
So I decided to directly run it with prop priorityScheme:
curl --request POST \
--user email@example.com:<api_token> \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '
{
"key": "EX",
"name": "Example",
"projectTypeKey": "business",
"projectTemplateKey": "com.atlassian.jira-core-project-templates:jira-core-simplified-project-management",
"description": "Example Project description",
"lead": "Charlie",
"url": "http://atlassian.com",
"assigneeType": "PROJECT_LEAD",
"avatarId": 10200,
"issueSecurityScheme": 10001,
"permissionScheme": 10011,
"priorityScheme": 10021,
"categoryId": 10120
}' \
--url 'https://your-domain.atlassian.net/rest/api/2/project'
But after running it I got next error:
{"errorMessages":["Unrecognized field \"priorityScheme\" (Class com.atlassian.jira.rest.v2.issue.project.ProjectInputBean), not marked as ignorable\n at [Source: org.apache.catalina.connector.CoyoteInputStream@1cc00aa5; line: 1, column: 154] (through reference chain: com.atlassian.jira.rest.v2.issue.project.ProjectInputBean[\"priorityScheme\"])"]}
Does anyone know how to achieve it via rest api call rather than set up it manually?