With this curl
curl -u user:password -X PUT --data "{\"update\":{\"priority\":[{\"set\":{\"name\":\"Bassa\"}}]}}" -H "Content-Type: application/json" http://myserver/rest/api/2/issue/MYISSUE-142... I get
{"errorMessages":["Internal server error"],"errors":{}}BUT, if I change the priority of the issue (MYISSUE-142) using the gui, after that the same curl call works as expected.
Why? How can I update the issue without having to manually "initialize" the priority?
Thanks,
Marco