Hi all,
I'm trying to combine Lookup and For each to update test items that have been delayed for five days.
I'm a bit confused about why I'm getting component incompatibility errors. Would anyone be able to provide some guidance? I would really appreciate any help.
Thank you in advance!
This is what I do in advanced branch:
There is two issues found when Lookup issues:
Hello @Brian Chen
Instead of using a Lookup Issues and a Branch, use just a branch of type For Related Issues JQL. Use the JQL that you currently have in the Lookup Issues action.
Why did you choose the settings that you have chosen in your Advanced Branch? If you can tell us that we can try to explain the flaw in your choice.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Brian Chen
Thank you for the additional information.
Have you availed yourself of the free, on-demand training available at https://university.atlassian.com concerning Automation rules?
You would use Advanced Branching to iterate over a list based on some criteria, when you can't get that list through the other Branching options available.
There's a couple of ways that you could accomplish this in a Scheduled rule. One is very similar to what you showed in your other reply.
Instead of using an Advanced Branch use FOR EACH: Branch rule/Related Issues: JQL.
For the JQL use key in {{lookupIssues}}
That will loop over each issue in the results set from the Lookup Issues action.
Within the branch add the actions to Edit Issue (set the Priority) and Send Email (With Assignee as the recipient.).
Outside of the branch use a Send Email action. In the final email action you can use syntax like this to list the key for each issue found in the Lookup Issues action:
{{#lookupIssues}}
{{key}}
{{/}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Trudy Claspill,
Thanks for your advice.
I used the method you suggested to update the issues, and it worked. Initially, I tried to use Lookup Issues and a Branch because I wanted to achieve two tasks in a single automation rule:
The truth is, I don’t fully understand how to use the Advanced Branch properly.
This is a logic flowchart that I thought would work.
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.