Details
-
Bug
-
Resolution: Duplicate
-
Medium
-
None
-
None
-
None
Description
NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.
https://developer.atlassian.com/display/JIRADEV/Updating+an+Issue+via+the+JIRA+REST+APIs has an example showing how to update the labels field
ADD: Adds an element to a field that is an array. The incoming value must be the same shape as the items of the array in a GET. For example, to add a label: { "update": { "labels": [ {"add": "newlabel"} ] } }
But it fails with
curl -u 'mdoar:secret' -H "Content-Type: application/json" -X PUT --data '{ "update": { "labels": [ {"add": "newlabel"} ] } }' https://jira.atlassian.com/rest/api/latest/issue/TST-29105 {"errorMessages":[],"errors":{"labels":"Field 'labels' cannot be set. It is not on the appropriate screen, or unknown."}}
Attachments
Issue Links
- duplicates
-
JRASERVER-27936 Add ability to use setSkipScreenCheck() when updating an issue via REST
- Closed
- relates to
-
JRACLOUD-27929 Cannot edit labels with REST
- Closed