Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,557,772
Community Members
 
Community Events
184
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

3 answers

you need to create an action which create a variable and as the value of the variable add this {{#lookupIssues}}{{assignee.emailAddress}} {{/}} . Then use the created variable  on the to  for the email. image.png

francis_pierre-louis
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 12, 2023

@Edrick did this actually work? And @Abiy Kaltiso did you ever find a solution. Im having the same issue.

Did you try using the variable?

im having the same issue, any more suggestions

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.” 

Like francis_pierre-louis likes this
francis_pierre-louis
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 12, 2023

Anyone resolve this?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events