Hello, we have the following automation in place:
But if we have multiple blockers, completing just one triggers the automation. Is there any way we could modify the automation that all the blockers need to be completed before the rule is executed?
Hello @Mateja Leskovec
Within the branch after the Status condition add a Lookup Issues action with the JQL:
issue in linkedIssues("{{issue.key}}", "is blocked by") and statusCategory != Done
That will find all the issues linked by "is blocked by" to the blocked issue, where the blocking issue is not in a status in the Done Status Category.
Then add a Smart Value to confirm that no issues were found by that action.
If this condition fails, then the blocked issue has blockers that are not "done", and the branch will stop processing that issue and move on to checking the next linked/blocked issue of the trigger issue.
Yes, and...to Trudy's suggestion: you could also try using the same JQL with the Related Issues Condition to check there are no issues matching the criteria:
https://support.atlassian.com/cloud-automation/docs/jira-automation-conditions/#Related-issues
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.