distinct.emailAddress not working

Nils Herhaus April 8, 2024

Hey together, 

 

I followed this guide exactly

Link: Automation to send email only once per assignee  

However, I just sends multiple Emails to the same assignee everytime the rule gets executed.

Did someone experienced the same problem here and can provide some help?

 

Best regards

Nils 

2 answers

2 accepted

0 votes
Answer accepted
Nils Herhaus April 9, 2024

Hi @Bill Sheboy , I attached the images of my rule workflow. It's not exactly the same, but it should work nevertheless. 

 

Problem: I still receive several Emails for each ticket.

 

Thanks in advance!01.png02.png03.png04.png05.png

 

Best regards

Nils

0 votes
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 8, 2024

Hi @Nils Herhaus -- Welcome to the Atlassian Community!

For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected.  Those will provide context for the community to offer ideas.  Thanks!

Until we see those...

The likely cause of this symptom is you have added JQL to the Scheduled trigger, and so the rule is iterating over those issues also.

Please check that, and if the trigger has JQL, remove it and re-test.

Kind regards,
Bill

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 9, 2024

Hi, Nils!

Please try to stick to one thread when posting; that will help others looking at this question in the future know if there are multiple solution approaches.  Thanks!

 

As I suspected, your scheduled trigger contains JQL, and it should not.  The rule is processing for each issue found by the trigger.

Here is the change you need:

  • trigger: scheduled, and remove the JQL
  • action: add another lookup issues action, using the JQL which was in the trigger
  • branch: change the branch source smart value to {{lookupIssues.assignee.distinct}}
    • ...everything else is the same.

Please note, this is also what the how-to article shows.

Nils Herhaus April 19, 2024

Hi it worked, thank you very much!

Like # people like this
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 19, 2024

Can you post your final rule for future users?

Nils Herhaus April 23, 2024

Hi @John Funk here the final result. I hope this helps:

Its acutally exactly like here:
Link: Automation to send email only once per assignee  

 

Screenshot 2024-04-23 at 13.32.40.png

Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events