Forums

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

Creating issue via REST API does not add description

Pradeep Susarla July 22, 2020 edited

Hi,

We are using Jira Cloud and I am trying to create an issue via REST call using CURL and the issue itself gets created but no matter what I try, the description does not get added. I am not sure if there's any setting to enable?

My call looks like below :

 curl --request POST --url "https://company.atlassian.net/rest/api/3/issue/" --user MY_USER_ID@MYCOMPANY.com:my_token --header "Accept: application/json" --header "Content-Type: application/json" --data @newjson.json

 and newjson.json is below

{
"fields": {
"summary": "Created an issue type Live Bug with some description",
"issuetype": {
"name": "Live Bug"
},
"project": {
"key": "MTS"
},
"description": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"text": "Basic auth",
"type": "text"
}
]
}
]
}
}
}

  

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events