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
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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.