Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Email notification automation to watchers

Purnama Sari July 5, 2024

how can i send email notification to each watchers with automation? 

 

during this time I tried use {{issue.watchers.emailAddress}} and email send to all watchers in issue

IMG_1056.jpeg

1 answer

1 vote
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.
July 5, 2024

Hi @Purnama Sari -- 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...

Is the problem the email addresses are not recognized?  By default, when you use a user list field with just {{issue.watchers.emailAddress}} that will join the values with commas.  But the email action wants the delimiters to be semicolons.

Please try this instead:

{{issue.watchers.emailAddress.join("; ")}}

 

Or, is the problem you want to iterate and send one email to each watcher, only referencing them one at a time?  If so, that is not easy with Jira Data Center's version of automation rules.  It does not yet have the advanced branch feature: https://jira.atlassian.com/browse/JIRAAUTOSERVER-749

One possible workaround is to use a webhook triggered rule that recursively triggers itself, sending one email at a time, and then re-triggering the rule when there are more to send.  I would not recommend that approach for this scenario due to the possibility of encountering automation service limits: https://confluence.atlassian.com/automationkb/automation-service-limits-1130727583.html

 

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer