Hello!
I want to automatically link a transitioned issue from Project A, to the last created issue of project B.
This automation rule works in most cases except when there are found multiple issues via "For JQL". Is it possible to apply the "For JQL" only to the first found issue??
Hi @Bodavo
If you add an ORDER BY statement to your JQL with the Lookup Issues action, that will guarantee that when you use {{lookupIssues.first.key}} it is indeed the latest one. Without the order by clause, there's no guarantee of the return order of the issues.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bodavo
Within your branch create a variable and assign it the following smart value.
{{lookupIssues.first.key}}
Make sure you create the same variable before the branch with null value, other wise you won't be able to access it later.
{{lookupIssues}} is the list returned when jql is run within your branch rule.
I hope it helps.
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
FYI...I do not believe a created variable will always work in this use case:
Please see this post for some spirited conversation on the behavior:
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.
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.