I'm getting a Version name is not valid error when trying to set the fixVersions of an issue:
curl --request PUT \
--url 'https://[subdomain].atlassian.net/rest/api/3/issue/[issue]' \
--header "Authorization: Basic XXX" \
--header 'Content-Type: application/json' \
--data '{"update": {"fixVersions":[{"set": [{"name": "v10.26.0"}]}]}}'
I get the following error:
{"errorMessages":[],"errors":{"fixVersions":"Version name 'v10.26.0' is not valid"}}
However the version does exist, I can get it from the versions endpoint, when I do:
curl \
--header "Authorization: Basic XXX" \
'https://[subdomain].atlassian.net/rest/api/3/project/[project]/versions'
I get:
{"self":"https://[subdomain].atlassian.net/rest/api/3/version/[version]","id":"[version]","name":"v10.26.0","archived":false,"released":true,"releaseDate":"2020-10-20","userReleaseDate":"20/Oct/20","projectId":[project]}
Any ideas what I could be doing wrong? Thanks