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":{}}
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.