I am trying to set up automation to send an email to one or more users identified in a custom field I've created called "Assigned Test Team" which I've identified in the JSON output as customfield_10105. I've tried dozens of iterations of smart values but I keep getting the error "Could not send email, the 'To' address field is empty. If you have referenced a field it may be empty."
I have tried various versions of the following Smart Values with no success. Is it even possible for Jira Automation to do what I want it to do?
{{issue.fields.customfield_10105.2.emailAddress}}
In the above smart value I thought specifying "2" as the third element of my array would help.
I've also tried
{{issue.fields.customfield_10105.emailAddress.value}}
and other variations.
Hi @karthur -- 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...
What type of project are you using: company-managed or team-managed? You may find that information at the bottom-left side of the page's expanding area.
If you are using a team-managed project, this is not possible. The "people" field type does not provide the email address to rules yet. There is a suggestion to add that, which you may follow here: https://jira.atlassian.com/browse/AUTO-519
If you are using a company-managed project, please try using this smart value expression as the email "to" field:
{{#issue.customfield_10105}}{{emailAddress}}{{^last}}; {{/}}{{/}}
That will iterate over the values in the field, separating them by semi-colons and a space.
Kind regards,
Bill
Thanks for the reply. Looks like I am in a Team managed project so I will have to wait.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @karthur
If you are looking for alternatives, our app Notification Assistant for Jira is able to send notifications to users under the "people" field type.
It has many features such as fully customizable templates, triggers and it extends Jira's notification capabilities.
Feel free to reach out!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.