I am creating an automation, that has a manual trigger. It looks at the fix version that the trigger issue is assigned to, then does a JQL branch based on "Fixversion= the fix version of the trigger issue
The problem I am having is that the logic in the JQL branch, never includes the trigger issue. I have cut this down to a very simple script as follows
Hi @Rees_ Ian
My understanding is by default, automation rules with an issue in the trigger then remove that issue in any branching. That is, the rule engine explicitly adds this to your JQL behind the scenes. This is likely to prevent looping errors.
AND key != {{triggerIssue.key}}
One way to observe this is to intentionally add an error to dynamic JQL, and the broken JQL will show the addition in the audit log.
The workarounds for this depend upon your scenario...
Kind regards,
Bill
Thanks for the explanation Bill - that would make sense. Now I know it is intentional logic, I am working around by doing everything in the branch and then doing the trigger issue separately. Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
error
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Rees_ Ian
Can you share what are you trying to do?
For ex, You could also, instead of branch, do a lookupIssues before your branch, with same JQL and do an Advanced Branch on {{lookupIssues.key}} instead and act on your result set.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the suggestion Kalyan but I am not counting, summing or averaging issues - I am creating a new fixversion which is a clone of another fix version i.e. the issues in it are also Clones. I think the answer is to do everything in the branch and do the trigger issue separately. Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great to hear. Just FYI, you can do what you have mentioned in 1 step by Adv Branch on lookupIssues results also. Either way, many ways to do this and glad you got it sorted, Thanks!
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.