Here is my PUT (to the URL /rest/api/2/issue/TEST-141):
{"update":{"priority":[{"set":"Trivial"}]}}
And here is the error:
{"errorMessages":[],"errors":{"priority":"Could not find valid 'id' or 'name' in priority object."}}
I also tried using the numeric ID (5), which returns the same error.
I have no issues updating other fields like the Summary or Description using this same PUT.
Any help on getting the input corrected would be appreciated.
Thanks.
Community moderators have prevented the ability to post new answers.
I believe the PUT data should look like this:
{"update":{"priority":[{"set":{"name" : "Trivial"}}]}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just a couple of notes:
- you must have priority set before calling PUT otherwise you'll get
{"errorMessages":["Internal server error"],"errors":{}}
- the complete curl to change priority is
curl -u user:password -X PUT --data "{\"update\":{\"priority\":[{\"set\":{\"name\":\"Low\"}}]}}" -H "Content-Type: application/json" http://yourserver/rest/api/2/issue/YOURISSUE-123
- the complete list of your current priorities is
http://yourserver/rest/api/2/priority
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.