You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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
},