Hello.
I'm trying to set up an automation rule which will be triggered upon sprint completion.
Since you can't use if/else conditions inside of branches I just "chained" two conditioned actions. My question is: doing it this way, will the second action (yellow rectangle) ever get executed at all? Or will the condition "status does not equal ready for preview" prevent all issues which actually are "ready for review" to get beyond this first highlighted condition/point?
The latter part of the rule will never activate. This is because the original conditions will prevent issues from passing forward down to the second set of conditions / actions.
However, you could break the rule into two separate branches, which can operate similar to If/Else for related issues. The branches will operate in order.
So the rule would be:
Because there are now two branches, whilst some issues will fail the first branch conditions, they'll succeed in the second branch and both sets of actions will complete.
Ste
Thanks for the confirmation, Stephen - i will gladly follow your suggestion!
Sebastian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sebastian Krzyzanowski -- Welcome to the Atlassian Community!
Some words of warning here...
The rule components in Branches execute asynchronously and independently. That means there is no guarantee the first branch in your rule will finish before the second one starts.
For your rule, that could be a problem because you are using a not-equal test on status of Ready for Review...which could lead to processing some issues in both branches.
The generic fix for this situation is to ensure the selection processing of both branches is mutually exclusive. For your rule, please consider switching the branch order and editing the rule a bit, such as:
Best regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill - thanks a lot for the insightfull clarification! I will adjust my rule and keep it in mind for others still to come.
Sebastian
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.