Hi,
This is a special/non-standard case.
When we release a version, this pop-up appears and we normally choose to push undone issues up to the next version:
I want to create an automation rule triggered on the Version Released event. I want the rule to check every issue included in that release, and if the issue contains a given XYZ label, then do not increase the version number even if in the above screenshot the option to move unresolved issues to a given version is selected.
If that is not possible BEFORE the release, then AFTER the release I want the automation rule to check all the issues again but this time if the Labels field contains a label called ABC_STATUS, then:
Basically, I want some specially labeled tickets to not move when a version is released and I'm not sure how to use branching with the right conditions in Automation.
And I'm using Labels but it could be any field that might be used to identify and prevent these special issues to move up.
Ice cream cone to the first one with an answer.
Based on my understanding, anywhere in the Jira UX where you can "release" a version is going to show that dialog box, and that seems it would be too late for what you want to do.
Instead you may need to create a rule, perhaps manually triggered from an example issue or scheduled, that would update the Fix Version values to meet your conditions before hitting the "release" button.
Kind regards,
Bill
Hi @Bill Sheboy and thanks for taking the time to answer.
I'm not sure it would be too late, because nothing happens if you click Cancel. Also I'm pretty sure that the Version Released event gets triggered when you click Release. The question is more if you can interfere with the version increase before it happens or if you're stuck having to do it after the fact. It's only MHO.
That being said, how do I go about cycling through the issues involved during the Version Released automation? I think I have to branch, but how do I tell Jira:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
With the version-related triggers, the rule may then branch over "issues in version". Then use rule conditions for your test and actions for the version changes.
I suspect you may need to use advanced edit with JSON and text functions to specifically remove the version from the field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nothing I have tried in the last 2 hours of branching tests I made worked to "hit" issues. I always get "No actions performed" in the Audit Log.
I followed your advice I saw in another thread to set up a test environment, and tried to make this as simple as I could. So I decided I would simply add the name of the version being released to the Description field of a single test issue I created. So:
In Automation, I have the Version Released trigger. I have tried the following branching:
For the sake of me, I cannot hit/catch/see/touch/reach/find concerned issues when I'm inside a Version Released trigger. I always get "No actions performed".
Do you have some light to shed please? Once I get this working I can work my way further but for now I can't even cross the start line.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When releasing the version with the dialog and selecting "Move unresolved issues to..." another version, that removed the released-version value from the Fix Version field. Once the rule triggers, only the "fixed" / completed issues can be branched over in the rule.
I recall from a different community question that using the "Ignore unresolved issues..." in the release dialog created other problems for version management and rules.
To do what you describe wanting, a rule would need to run before the release happens to check the label (or other conditions), and then remove any specific fix version values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I checked the following posts and I still don't know how to do this.
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.