Getting this error "{"errorMessages":["There was an error parsing JSON. Check that your request body is valid."]} "
The Json is valid and im not sure why this bash curl coming out as error.
I just fixed it by converting Python dictionary object to JSON
json.dumps(your_json_data)
Hi Jay -- Welcome to the Atlassian Community!
It appears you are passing more attributes than are needed to create the issue, such as the field type information. Perhaps try something simpler to see how that helps. And here is the a documentation page that might help also: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/
{
"fields":
{
"summary": "'$A'",
"duedate": "'$B'",
"reporter": {
"id": "12344534534534"
},
"issuetype": {
"id": "3"
},
"project": {
"id": "12201"
},
"description": "'$C'"
}
}
Also please note you will need a valid account ID value to set the reporter field.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.