Forums

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

Description is blank when creating project via the REST API

Leirbag Assuab
Contributor
March 13, 2019

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:

Project details.png

Is there something I'm doing wrong?

Thanks in advance!

1 answer

Suggest an answer

Log in or Sign up to answer