Forums

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

I'm trying to use Automation for Jira to send an email to specific Users when status changes

karthur
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!
November 14, 2023

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. 

2 answers

1 accepted

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.
November 14, 2023

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

karthur
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!
November 14, 2023

Thanks for the reply. Looks like I am in a Team managed project so I will have to wait.

0 votes
Igor Medeiros - Modus Create
Atlassian Partner
December 4, 2023

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!

Suggest an answer

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

Atlassian Community Events