Can you send an email to an address manually entered into a field?
Asked by Mike Bobay:

Hello Community,

I am new to jira and do not use it regularly but my team does. They have asked me to help them come up with a solution which involves sending an email to an address that is defined in a field.   

Apparently they use Jira to track onboarding and a required to fill out the customer's email address in the record as a field. Upon closing the ticket they would like it to trigger an email send to that field.

Has anyone had to do something similar or know where I can start to find them a solution?


Answers:
author: Trudy Claspill
body: Hello [@Mike Bobay](/t5/user/viewprofilepage/user-id/5552957)

Welcome to the Atlassian community.

Yes, that should be possible with an Automation Rule.

You can use the [Issue Transitioned trigger](https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/#Issue-transitioned), and the [Send Email action](https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Send-email).

In the To field for the Send Email action you would reference the custom field that has the email address using a smart value:

{{issue.the name of the custom field}}

You probably also want to make sure the field actually has a value in it first.

<https://support.atlassian.com/cloud-automation/docs/jira-automation-conditions/#Issue-fields-condition>

![Screenshot 2024-07-25 at 1.15.02?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/338026i9514B194CA39F0BF/image-size/large?v=v2&px=999 "Screenshot 2024-07-25 at 1.15.02?PM.png")

In my example my custom field name is "Custom Paragraph".

However, there is some risk that the email address will not be valid or in a valid format. Do you expect the rule to do any validation of the content of the field to try to validate that it is a properly formatted email address?

comments: author: Mike Bobay
body: Thank you for the quick reply and being very detailed. This will definitely save us some time.

I will look into this with the team and see if I can set it up for them.   

1. The field is required to close the ticket so I don't think it will be an issue when field is empty. Although, out of curiosity, what happens if the field is left blank and the automation tries to send an email. Will it just fail/will user be notified?

2. I don't know if jira has the email data type. But I may look into changing the field to that data type if it does exist for validation purposes. Do you know if it does?


author: Trudy Claspill
body: 1. The rule will fail and notification will be sent to the person specified in the Rule Details to receive notifications upon rule failure.

2. Jira does not have a native custom field type for Email Address.


author: Victor - Modus Create
body: Hi [@Mike Bobay](/t5/user/viewprofilepage/user-id/5552957) ,

From what I understood of your request, it seems that you would find an alternative for this using Notification Assistant for Jira Cloud:

- [https://marketplace.atlassian.com/apps/1211069/notification-assistant-for-jira-email?hosting=cloud\&tab=overview](https://marketplace.atlassian.com/apps/1211069/notification-assistant-for-jira-email?hosting=cloud&tab=overview)

The app allows you to set many different triggers that could help you with the task at hand.

Hope it helps.  
Cheers,  
Victor \| Modus Create


Tags: automation

cloud

email

jira-cloud