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
},
I don't know if this solve the issue for you, but for me this body is working:
{
"update": {
"fixVersions": [ {
"add": {
"name": "{{ versionName }}"
}
}]
}
}
The `add` expected an object, not a list
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.