Hi everyone!
I'm creating projects using Jira REST-API (Jira 7.9.2 on Windows Server) and project-templates option:
D:\>curl.exe -u <user>:<pwd> -D- -X POST --data "{\"key\":\"AKEY\", \"name\":\"A name\", \"description\":\"Some descriptive text\", \"lead\":\"a01506\", \"url\":\"\", \"assigneeType\":\"UNASSIGNED\", \"avatarId\":\"\", \"issueSecurityScheme\":\"10602\", \"permissionScheme\":\"10602\", \"notificationScheme\":\"10602\", \"categoryId\":\"10600\"}" -H "Content-Type: application/json" --insecure https://jira.local/rest/project-templates/1.0/createshared/11400
HTTP/1.1 200
X-AREQUESTID: 531x7734x1
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self'
X-ASEN: SEN-L10908265
Set-Cookie: JSESSIONID=22C9607CCF05EBF8C714877BF81E1343;path=/;Secure;HttpOnly
X-Seraph-LoginReason: OK
Set-Cookie: atlassian.xsrf.token=BCIL-YE78-LEIS-ZDN0|f6961648c0cb0297fbaf4ecd9e7a7b471cbb2e54|lin;path=/;Secure
X-ASESSIONID: xzu1yj
X-AUSERNAME: admin
Cache-Control: no-cache, no-store, no-transform
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Date: Wed, 13 Mar 2019 07:51:53 GMT
{"returnUrl":"/browse/AKEY","projectId":11707,"projectKey":"AKEY","projectName":"A name","remoteProjectLinks":{}}
I'm setting project description in JSON data, but description is blank in project details:
Is there something I'm doing wrong?
Thanks in advance!
Oh! I've found some documentation, https://community.atlassian.com/t5/Answers-Developer-Questions/Create-new-Project-via-REST-based-on-existing-Project/qaq-p/527104 and https://community.atlassian.com/t5/Jira-questions/How-to-create-project-with-shared-Configuration-via-REST-API/qaq-p/650062. It seems that description is not allowed in JSON piece for create project with shared configuration. Maybe I'm messed with "create project" basic option: https://docs.atlassian.com/software/jira/docs/api/REST/7.12.0/?_ga=2.185729313.948630155.1552387354-1289665125.1552387354#api/2/project-createProject
Can someone confirm this? Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.