I want to create a Jira automation rule which sends out an email to each assignee based on a JQL query. The email should only contain a list with all issues assigned to the recipient.
Therefore, I created this automation:

And my email template looks like this:
{{#lookupIssues}}
{{if(equals(issue.assignee, issue.distinctAssignee))}}
<a href="https://jira-url/{{key}}">{{key}} {{summary}} </a> <i>[{{status.name}}]</i>
{{/}}
Problems:
- The "if" statement is always true so every person I sent this email to gets a full list of all issues based on the JQL query.
- Sending out the email, it prints "true" in front of each issue I am listing.
Please let me know if you need any further information.
Help is much appreciated. Thank you!