Hello,
I am trying to create an automation to release a fixVersion when all issues are done and then change its name when released. However, I am unable to do so.
I am using a PUT API call to change the version's name field upon release but the following error keeps appearing:
@Alex Cadevall , Welcome to the Atlassian Community!
According JIRA API REST documentation your URL is wrong. Please, try to use this URL: https://your-site.atlassian.net/rest/api/3/version/{{issue.fixVersions.id}}
I did some tests and works fine. Consider this documentation to Fix Versions API in Jira Cloud: Update Version - REST API
If you want change only the name use this custom payload:
{
"name": "NEW RELEASE NAME"
}
Hope this helps you.
Hello, thanks for your response!
It seems that, even with the URL changes, the result is the same sadly
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you checked your token or your permissions in the project where this version is presented.
Ensure that you are in administrators project role or consider try another Jira API TOKEN. I'm leaving an attachment of my rule that is working so you can just take a new look and see if is similar to this one. Then you can try to change your API token to see if your the current problem is associated with your token or permissions.
Hope this helps
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.
Hi @Alex Cadevall -- Welcome to the Atlassian Community!
Just to confirm: for the issue triggering this rule, how many versions are assigned to Fix Versions?
As written, the rule would only support one value in the Fix Versions field. Having multiple values would cause an invalid URL for that request.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, it was both a URL problem and token problem.
For the URL I had to simplify it to the one indicated by @Fernando Eugênio da Silva URL: https://your-site.atlassian.net/rest/api/3/version/{{issue.fixVersions.id}}
Regarding the Token I had not added Basic in front of the base64 coded email+token.
Thanks a lot for your help!
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.