I have created an automation to send an email with a list of issues due for review and everything works apart from the list of issues in the email. My automation:
When: Scheduled
Every week on Mon at 9:00am
Then: Lookup Issues
Search for issues using JQL
project="IP" AND IssueType="Risk" AND "Next Review Date">=1w AND "Next Review Date">=now() AND resolution="unresolved"
For each: Smart Value {{distinctAssignee}}
Then: Lookup Issues
Search for issues using JQL
project = "IP" AND IssueType="Risk" AND "Next Review Date"<=1w AND "Next Review Date">= now() and resolution = "Unresolved" and assignee= {{distinctAssignee}}
And: Send email

So the email is sent but the issue list is empty. When I check the audit log it comes back with:

Where am I going wrong?