We are using REST API 3 to create Issues in JIRA Cloud instance.
{"issues":[],"errors":[{"status":400,"elementErrors":{"errorMessages":[],"errors":{"customfield_11644":"Operation value must be an Atlassian Document (see the Atlassian Document Format)","customfield_11636":"Operation value must be an Atlassian Document (see the Atlassian Document Format)","customfield_11641":"Operation value must be an Atlassian Document (see the Atlassian Document Format)"}},"failedElementNumber":0}]}We are getting the above response to one of the jira instance (lets say alice.atlassian.net/rest/api/3/
Where as same data when exported to another jira instance of ours (lets say bob.atlassian.net/rest/api/3/ ) its working fine .
In both scenarios , we created custom fields and assigned to the respective screens of the project.
Can any one help us on the same ?
Community moderators have prevented the ability to post new answers.
Hi Sdara,
This is due to invalid request format in the payload, Please refer the developer community for right format.
for example see below thread:
Yes, that worked, I think it should be accepted as an answer. Basically, we have to to use description as :
"description": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "description"
}
]
}
]
},
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This page has an incorrect example of description:
https://developer.atlassian.com/server/jira/platform/jira-rest-api-example-create-issue-7897248/
would be nice to get an update to it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great stuff! This helped me resolve this issue!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the same problem... Anyone?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The error is because you have a wrong payload with description attribute, remove the description attribute as its not mandatory and send the request.
For ex:
Use the below payload to create an issue:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.