with the help of AI, trying to setup an automation that summarizes all the tasks for my team, for the last 7day, including the statut, last comment, etc. grouped by assignee and sends a single email to me with the summary.
in the body of the email, I'm doing this,
**Weekly EE Project Task Updates (Last 7 Days)**
{{#lookupIssues}}
{{#if(assignee)}}
### Assigned To: **{{assignee.displayName}}**
{{#issues}}
- **Issue Key:** [{{key}}]({{url}})
- **Summary:** {{summary}}
- **Status:** {{status.name}}
- **Last Comment:** {{#comments.last}}{{body}}{{/comments.last}}
- **Last Updated:** {{updated.format("yyyy-MM-dd")}}
{{/issues}}
{{/if}}
{{/lookupIssues}}
The audit log shows this error: 
I can't figure out what is wrong with this if statetment.