Forums

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

Set priority schemas on project creation

zosyko July 5, 2018

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?

2 answers

1 accepted

0 votes
Answer accepted
zosyko July 6, 2018

I've found it under jira 7.7 version...

  • Associate a project with a priority scheme (PUT /rest/api/2/project/{projectKeyOrId}/priorityscheme)


https://developer.atlassian.com/server/jira/platform/preparing-for-jira-7-7/

0 votes
Samip Banker September 11, 2018

We are on 7.6.6v (Data center) so we can't use the REST API... Does anyknow how any other way we can associate specific Priority Schema on project creation?

~Samip

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events