Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,367,735
Community Members
 
Community Events
168
Community Groups

Automation rule should send email based on lookup issues but it either sends duplicates or no emails

Edited

What I am trying to do

Trigger: Every weekday at 8:30am

Action: Lookup stale issues based on a JQL query

Then: Email the assignees of those issues with a list of their stale tickets

Expected result: assignees with stale tickets should each get 1 daily email at 8:30am with all of their stale tickets in a list

Actual results: assignees get duplicate emails.

or

If I uncheck the box "Run a JQL search and execute actions for each issue in the query” on the scheduled trigger step then I thought that would solve the problem but instead it ends up not sending any emails at all with the error, “Could not send email, the ‘To’ address field is empty. If you have referenced a field it may be empty.” in the audit logs

The JQL I have in the screenshots are just test issues. Actually query to find stale issues will be be based on last updated date. 

Screen Shot 2022-08-25 at 1.23.33 PM.pngScreen Shot 2022-08-25 at 1.23.45 PM.png

1 answer

Try removing the Jql from trigger 

Hi Mauricio, as mentioned if I remove the JQL from the trigger then no emails are sent and I get the error in the audit logs, "Could not send email, the ‘To’ address field is empty. If you have referenced a field it may be empty.” 

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events