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.
Hello team,
I'm trying to create the following Jira automation rule.
When a sprint is created, create a new release version. The naming has to be incremental (i.e. R 1, R 2, etc)
Then set the fix version for each issue with the current release version, and override if it's not empty.
I'm struggling to use the smart values to fill out the release name etc. and seems that the 'Fix version is not empty' condition doesn't work well.
Do you have any suggestions?
Hi @Antonio Carvetta -- Welcome to the Atlassian Community!
Would you please post images of your complete rule and the audit log details showing the execution? Those will provide context for the community to offer ideas to help. Thanks!
Until we see those...
What you describe is a fairly common use case, although you do not describe the naming convention of your sprints...and if that can be used to build the version names.
Kind regards,
Bill
Hello @Bill Sheboy , thanks for getting back to me!
I feel I'm using the formula in the wrong way.
Then I set the 'next unreleased version' for all the issues with/out empty version
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The {{version}} smart value is only available with the version-related triggers, and so your rule cannot use it when triggered on Sprint Started. Please note the difference as that smart value is singular, as compared to the issue-related smart values of {{issue.fixVersions}} and {{issue.versions}} (which is really the Affects Version field).
To do exactly what you suggest when triggered on Sprint Started, you would need to call the REST API from the rule to get all of the project's versions, get the maximum value from the version names from the webresponse, and then use that to create the next version name.
Because of this additional complexity, I suggested the alternative of creating the new version when the prior one releases, and then just assign the version when the sprint starts.
If you still want to create the version only after the sprint starts, please review this article as which describes how to call the REST API from a rule: https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828 and this is the reference for the REST API method to gather all the versions for a project: https://docs.atlassian.com/software/jira/docs/api/REST/1000.824.0/#api/2/project-getProjectVersions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy, thanks for clarifying this. I will spend some time on the REST APIs rule.
Do you have an example of the suggested workaround?
The alternative of creating the new version when the prior one releases, and then just assign the version when the sprint starts.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The alternative is what I described earlier...So one rule would be:
And the second rule could be:
This approach assumes several things:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Bill Sheboy
I used this automation rule, and it seems to work fine.
What's the best automation rule to override a fix version of an unreleased issue?
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I believe if you just use the SET option with Issue Field edit the value is replaced for fixVersion.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
[Plz tell me how can i do this work also and grow with our community also and achive our gols
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.