Create Project by REST calls with workflowscheme and screen schemes.

Shiva Prasad Rudrappa Hattaraki January 28, 2020

I am creating 1000 Kanban projects by using REST calls but i dont find how to create projects with existed workflowshemes and issuetype screen schemes.

 

I found only permission scheme and notification scheme.

following is the code 

curl -X POST \
https://localhost//rest/api/2/project \
-H 'Authorization: Basic username:password \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"key": "SHIV1",
"name": "SHIV1 Sample",
"projectTypeKey": "software",
"projectTemplateKey": "com.pyxis.greenhopper.jira:gh-kanban-template",
"description": " Project description",
"lead": "Shivaprasad",
"permissionScheme": 12404,
"assigneeType": "PROJECT_LEAD"
}'

1 answer

0 votes
Shiva Prasad Rudrappa Hattaraki January 28, 2020
curl -X POST \
https://localhost//rest/api/2/project \
-H 'Authorization: Basic username:password \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"key": "SHIV1",
"name": "SHIV1 Sample",
"projectTypeKey": "software",
"projectTemplateKey": "com.pyxis.greenhopper.jira:gh-kanban-template",
"description": " Project description",
"lead": "Shivaprasad",
"permissionScheme": 12404,

"workflowScheme": 12321,

"assigneeType": "PROJECT_LEAD"
}'

 The above code is giving error like unrecognized workflowScheme

 

Can any one help me?

Suggest an answer

Log in or Sign up to answer