Forums

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

400 error when create jira and how to debug the issue

Lia August 20, 2020

Hi experts,

I'm using rest api to create new jira but getting 400 error. I have compared format with manually created jira(all mandatory fileds are provided) and fetched existing jirasd to confirm {} format but still cannot figure out what was wrong.
Anyone can help and also advice how to debug such issue?

Endpoint
Post to https://<endpoint>/rest/api/latest/issue

Content:

{
"fields": {
"assignee": {
"name": "email"
},
"customfield_10110": { //custom field for severity 10012 maps to severity 4
"id": "10012"
},
"description": "contest test",
"issuetype": {
"name": "Incident"
},
"labels": ["a","b"],
"project": {
"key": "project key"
},
"summary": "subject"
}
}

Error:

Issue could not be created. Status code 400 was returned with response data: {"errorMessages":["We can't create this issue for you right now, it could be due to unsupported content you've entered into one or more of the issue fields. If this situation persists, contact your administrator as they'll be able to access more specific information in the log file."],"errors":{}}

1 answer

1 accepted

0 votes
Answer accepted
Lia August 20, 2020

Found issue. when there is special characters in description, it need to be handled

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events