Specify a valid version 'id' or 'name' for fixVersions

David E
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 12, 2023

I can see the various questions about this but still can't figure out why I can't get it to work.

I've learned that the ticket and version should be on the same project, and you can verify that below as well. What am I doing wrong?

I'm trying to set the version using:

$ curl -n -D- -X PUT --data '{"update":{"fixVersions":[{"add": [ {"name":"App 8.1.x"} ] }]}}' -H "Content-Type: application/json" https://some.net/rest/api/2/issue/FES-5786

Excerpt with info from the ticket:

$ curl -n "https://some.net/rest/api/latest/issue/FES-5786" | jq | grep '"project"' -A 3
"project": {
"self": "https://some.net/rest/api/2/project/10000",
"id": "10000",
"key": "FES",

The version I'm trying to set:

$ curl -n "https://some.net/rest/api/2/project/10000/versions" | jq | grep 'App 8.1.x' -C 5
"projectId": 10000
"self": "https://some.net/rest/api/2/version/10149",
"id": "10149",
"name": "App 8.1.x",
"archived": false,
"released": false,
"projectId": 10000


0 answers

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events