I am using this with a curl command but every time i get same response for priority , components and labels.
curl -u username:password -X PUT --data @Data.json -H "Content-Type: application/json" https://<SERVER>/rest/api/2/issue/<issueKey>
below is my data.json File
{"update":{"labels":[{"add":"MYLABEL"}]}}
Response:
{"errorMessages":[],"errors":{"labels":"Field 'labels' cannot be set. It is not on the appropriate screen, or unknown."}}