Sending an email to a non-jira user
Asked by Marcus Chuah:

Hi all, I created a custom field to collect non-jira users email address. Will like to have an automation to send them emails regarding their ticket status.

I been getting this error:

##### [Advanced branching](https://mi-pnp.atlassian.net/jira/software/c/projects/ATG/settings/automate#/rule/5584334/94451440) {#toc-hId-2015499314}

The provided smart value was unable to be resolved to an object.  
Appreciate any help. Thanks all

![Screenshot 2022-02-16 at 16.05.14.png](https://community.atlassian.com/t5/image/serverpage/image-id/183677i3B3DF7546EDB8D96/image-size/large?v=v2&px=999 "Screenshot 2022-02-16 at 16.05.14.png")![Screenshot 2022-02-16 at 16.23.55.png](https://community.atlassian.com/t5/image/serverpage/image-id/183678iED99A42C84FA24F1/image-size/large?v=v2&px=999 "Screenshot 2022-02-16 at 16.23.55.png")![Screenshot 2022-02-16 at 16.23.48.png](https://community.atlassian.com/t5/image/serverpage/image-id/183679iA7F923B96A0A56E5/image-size/large?v=v2&px=999 "Screenshot 2022-02-16 at 16.23.48.png")


Answers:
author: Pramodh M
body: Hi [@Marcus Chuah](/t5/user/viewprofilepage/user-id/4761598)

Welcome to the Community!!

The issue field value is dereferenced as {{issue.Field Name}} to get the value

Make sure the email is present in the field for the rule to succeed

![ID1.png](https://community.atlassian.com/t5/image/serverpage/image-id/183680i2903F92ECA5AFFC0/image-size/large?v=v2&px=999 "ID1.png")

![ID2.png](https://community.atlassian.com/t5/image/serverpage/image-id/183681iB1A19EAFC00CDAD7/image-size/large?v=v2&px=999 "ID2.png")

Let me know if you have any queries

Thanks,  
Pramodh

comments: author: Marcus Chuah
body: Hi Pramodh,

Thanks for the reply. I got another error, to address field is empty. Screenshots below.

Thank you.

![Screenshot 2022-02-16 at 17.56.29.png](https://community.atlassian.com/t5/image/serverpage/image-id/183685i33F07F6B204882DA/image-size/large?v=v2&px=999 "Screenshot 2022-02-16 at 17.56.29.png")![Screenshot 2022-02-16 at 17.56.23.png](https://community.atlassian.com/t5/image/serverpage/image-id/183686i4B1568C0B972E17C/image-size/large?v=v2&px=999 "Screenshot 2022-02-16 at 17.56.23.png")![Screenshot 2022-02-16 at 17.56.14.png](https://community.atlassian.com/t5/image/serverpage/image-id/183687iAB8B349079646F07/image-size/large?v=v2&px=999 "Screenshot 2022-02-16 at 17.56.14.png")![Screenshot 2022-02-16 at 17.58.46.png](https://community.atlassian.com/t5/image/serverpage/image-id/183688i3DE93E73BA5EF5B7/image-size/large?v=v2&px=999 "Screenshot 2022-02-16 at 17.58.46.png")


author: Pramodh M
body: Hi [@Marcus Chuah](/t5/user/viewprofilepage/user-id/4761598)

Have the Condition checked before sending an email to check whether the field is empty


author: Mykenna Cepek
body: The "Log Action" is really helpful in situations like this.

Before the "Send Email" action, add an "Log Action" which outputs something like the following (for your particular situation) into the Audit Log before the rule tries to send the email:

```
Email addr = "{{issue.Email Address[Short text]}}"
```

This will clarify exactly what that Smart Value is, for that issue, for that rule execution. It will show in the Audit Log.

If nothing shows between the double-quotes, then your Smart Value isn't doing what you think it's doing (so read [the documentation](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/) again, and experiment as needed until you can see the value you want being returned).

In your case, I also question whether "\[Short text\]" belongs in your Smart Value. Try removing that.


author: Marcus Chuah
body: Hi all,

Thanks for the responses. It is working now. Thank you.


author: Dias
body: Hi Marcus,

How did you get it to working?

I mean how were you able to capture the non-jira user's email address? What did you put as the smart value?

Thanks


author: Marcus Chuah
body: I create a custom field called Email Address first - single value to take in inputs at ticket level. Afterwords the automation is written this way.

Thank you.

![Screenshot 2022-02-23 at 10.13.14.png](https://community.atlassian.com/t5/image/serverpage/image-id/184951i63530C0738DDAB62/image-size/large?v=v2&px=999 "Screenshot 2022-02-23 at 10.13.14.png")


author: Basavaraj Sangote
body: hi [@Marcus Chuah](/t5/user/viewprofilepage/user-id/4761598) which field type did you used for creating custom field?


author: Navatha A
body: Hi [@Marcus Chuah](/t5/user/viewprofilepage/user-id/4761598) , this has been really helpful. Thank you


author: Ashish Bajaj
body: Hi Team, The above was hugely helpful.

Thanks.

I have another query where I would like to have multiple emails in the field and some can be Jira user and rest may be non licensed Jira users.

Using {{issue.fieldname}}, I was able to add one email address and Jira sent the email but when i used two then the automation failed.

Can someone help.

![Screenshot 2023-12-20 140849.png](https://community.atlassian.com/t5/image/serverpage/image-id/297503iDF2C52D18F09CBF8/image-size/large?v=v2&px=999 "Screenshot 2023-12-20 140849.png")


Tags: email