I want my automation to:
To cover these cases, I've created some automations that work for some cases:
However the issue doesn't get unflagged when all blocking issue are unlinked. I tried this automation but it doesn't work for some reason.
Questions:
@Marc - Devoteam that did not work.
Interestingly I just checked the audit log and it marks the automation as working in my tests:
So I thought maybe the issue comes from the action, not the trigger. I added a simple label edit to the rule to validate this assumption, but still nothing happens :/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Nils Medina
Did the issue the rule actioned on hade a flag set?
Or does the linked issue, has the flag set?
Or if the current issue has a flag, does the current issue have more linked issues with "is blocked by" and or "blocks"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Marc - Devoteam Ah interesting your second question made me realise that the linked issue is the one that gets unflagged! How should I change the rule so that the blocked issue gets updated? I'm a bit confused by what "current issue" target means :/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Nils Medina
On which issue are you removing the links, based on that the if in the branch should act?
Try in the branch to remove the option "Blocks"
This will mean that the issue you act on should have a link or links that are set as "Blocks"
The issue is that its tricky to do this based on the link direction and on which issue you are actioning
There is always a risk that someone removed the link from the wrong direction and then the flag doesn't get removed or when linking choosing the wrong link direction
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Nils Medina
As @Marc - Devoteam describes, rules to handle this scenario can be tricky due to from-which-issue the link was removed...and the directional nature of some types of links.
Even more complexity happens when there can be multiple issues "blocking" of any of the issues involved. Or the "worser" case scenario: circular, link paths!
If you assume no circular, linking paths, and there can be multiple blockings issues for each one, the rule could use branching and related issues conditions:
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.
Ok progress! So by using the "destination issue", I can now unflag the blocked issue when removing a blocker (from either side).
The issue is indeed that this still unflag the blocked issue even when there are still other blockers on it...I would assume the condition "if linked issues not present" would catch that?
(Thanks a lot for your help and patience btw, much appreciated 🙏)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Progress is good to hear!
Remember that some links are directional. Thus depending upon the direction, the related issues condition may not find matches if the incorrect direction is picked: "blocks" versus "is blocked by".
If the trigger is on "blocks", the branch on the destination issue should probably check the other direction.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please accept my answer as a solution.
This will help other community member trying to solve the same.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, apologies but I haven't reached a solution to my problem yet, as the unflagging should happen only when all blocking issues are removed. Currently it does it everytime.
I don't get why as the condition "if linked issues not present" (issues plural) is checked on the correct issue, aka the one where the action is correctly taken.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok I think I figured it out. This additional rule unflags the blocked issue, only when no other blocking issues are opened. Tested with multiple blocking issues, and while removing the blocking issue from either side.
Thanks again @Marc - Devoteam and @Bill Sheboy for your help with 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.