lesstif / php-jira-rest-client

PHP classes interact Jira with the REST API.
Other
510 stars 263 forks source link

Unable to set custom field value for string type #389

Closed sachinbhosale1191 closed 2 years ago

sachinbhosale1191 commented 3 years ago

I have tried to update and add text to the following string type custom field "addCustomField('customfield_10100', 'text area body text')" for API V3, it is returning the following error

"CURL HTTP Request Failed: Status Code : 400, URL:https://xxxxx.atlassian.net//rest/api/3/issue/test-8?notifyUsers=0\nError Message : {\"errorMessages\":[],\"errors\":{\"customfield_10100\":\"Operation value must be an Atlassian Document (see the Atlassian Document Format)\",\"customfield_10101\":\"Operation value must be an Atlassian Document (see the Atlassian Document Format)\"}}"

lesstif commented 3 years ago

according to the atlassian's documents, rich text stored in ADF(Atalssian Document format), for example comment or description field.

so you should formatting text field for ADF.