Hi @Brendan Connelly -- Welcome to the Atlassian Community!
Short answer: once inside of an iterator, no outside data is visible (such as the branch variable), and so the rule compares an unknown / null value, causing the equals function to fail.
To fix this, let's correct a couple of things:
You are essentially doing a variation of the scenario from this knowledgebase article:
However your rule (and that knowledgebase article) make a mistake: your branch variable is the same name as a built-in smart value (or function for the KB case). That can cause the rule to get confused in parsing. I recommend always naming variables in a way less likely to collide with other values, such as adding a prefix like: varAssignee.
And even if the name was unique, we have the scoping problem where a long-format iterator cannot see outside data.
The simplest way to fix both of these for this scenario is to repeat the Lookup Issues action inside of the branch, adding the branch variable to the JQL. This is the technique used by that KB article.
A more complicated solution uses dynamic list searching with regular expressions, although that seems more than what is need here.
Kind regards,
Bill
What’s worked well for me is branching over {{lookupIssues.assignee.accountId.distinct}}
using a safer variable name like varAssigneeId
, then running a second "Lookup Issues" action inside the branch with this JQL:
status in ("TO DO", "IN PROGRESS") AND dueDate is EMPTY AND assignee.accountId = "{{varAssigneeId}}"
That reliably filters each assignee’s issues without needing tricky inline filtering.
For the task list in the email, I use:
`{{#lookupIssues}}
{{key}}: {{summary}}
{{/lookupIssues}}`
And for the greeting line, since all issues belong to the same assignee at this point:
{{lookupIssues.first.assignee.displayName}}
Clean and effective — no need for nested blocks or additional rules. This pattern’s worked well for me in similar daily digest automations.
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.