Send Email automation -field value
Asked by rsisauri:

Hello Atlassian Community  
need your help!   
I want to create automation :  
When Issue transitioned, if field is one of... : than Send email . And I want to send values of some fields in the mail. (I do not know if it is important or not, this fields are global and type is Select List (single choice))

When testing this automation, I get email, but there is no value ![Capture30.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/230238iD4CA60EE7819E8D3/image-size/large?v=v2&px=999 "Capture30.PNG")![Capture31.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/230239iC2D5C6C604DA9871/image-size/large?v=v2&px=999 "Capture31.PNG")  

I try several smart values to get field value {{issue.CustomefieldID}} .

    issue.CustomField.id


    Can you suggest what to do? which smart value will get the result i want?

<br />

p.s. we are using JSM data center


Answers:
author: Jack Brickey
body: Hi [@rsisauri](/t5/user/viewprofilepage/user-id/5005305) , can you simply this using the following example? Basically just use the JQL condition...

![95E758B1-338A-4118-A7C1-2C2DF1F0C5D4.jpeg](https://community.atlassian.com/t5/image/serverpage/image-id/230241i84167F244C966C86/image-size/large?v=v2&px=999 "95E758B1-338A-4118-A7C1-2C2DF1F0C5D4.jpeg")

comments: author: rsisauri
body: hello jack,

my main goal is send email where body contains field values..


author: Jack Brickey
body: Sorry I don't understand. "Body" of what field? Your original post indicates that you want to send an email if your custom fields have certain value. Or at least that is my interpretation.


author: rsisauri
body: Body of email.   
I want to send email (let's forget about the rest of other conditions of my automation).

And what i want to send by email? Issue Key, Issue Summery ,issue url and the details of this issue.(certain fields)

My problem is while trying to send issue fields.   
For example: I have field *(it is a single choice field)* :**Sector** and as i mentioned I want to send by email (with automation help) this field value.   

I wrote smart value in my automation : {{issue.customfieldID}} but it does not work. As you can see in previous screenshot I got an email , but this field is empty


author: Jack Brickey
body: Regarding sending the email and incorporating custom fields into the body please see below example.

**1) Example of issue view...**

![issue view.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/230260i9182DD88AB319E63/image-size/large?v=v2&px=999 "issue view.jpg")

**2) Automation rule...**

![rule.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/230259i6E05A2B7FFCAB301/image-size/large?v=v2&px=999 "rule.jpg")

**3) resulting email**

![result rmail.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/230258iCC9BB5B1FAAAA0CA/image-size/large?v=v2&px=999 "result rmail.jpg")


author: rsisauri
body: I tried this but it's not working.   
When you have text field , it works correctly as we see in your screenshot.   
But as i mentioned my fields are drop down type fields(++***Select List (single choice)***++ ), and unfortunately the result in the email is empty


author: Jack Brickey
body: It works for me if I use this smart value format - {{issue.Change Reason}}. "Change Reason" is the field name. So just replace it with your field name.

![2022-12-14_10-42-16.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/230471iE6F191F27EA1C804/image-size/large?v=v2&px=999 "2022-12-14_10-42-16.jpg")![2022-12-14_10-40-45.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/230472i47E7A29CA91AB80A/image-size/large?v=v2&px=999 "2022-12-14_10-40-45.jpg")


author: Kateryna_v_SaaSJet_
body: Hi [@rsisauri](/t5/user/viewprofilepage/user-id/5005305) [](https://community.atlassian.com/t5/user/viewprofilepage/user-id/5005305)If you don't mind using add-ons, then it's enough to simply set up a template for notifications in [SLA Time and Report for Jira](https://marketplace.atlassian.com/apps/1220741/sla-time-and-report-for-jira?tab=overview&hosting=cloud&utm_source=Atlassian_Community&utm_medium=referral&utm_campaign=Comment_Send-Email-automation-field-value&utm_term=20221219). There are already built-in Shortcodes, and we will soon add more Shortcodes. You can set up notifications for comments on a task (+email) or in SLACK.

This is what this Notification Template Editor looks like: ![2022-12-19_8-08-38.png](https://community.atlassian.com/t5/image/serverpage/image-id/231081i4CA5EBAA20906703/image-size/large?v=v2&px=999 "2022-12-19_8-08-38.png")  
This application was developed by our company, so I will be happy to help if you have any questions.  
Check how it works for you with a[30-day free trial.](https://marketplace.atlassian.com/apps/1220741/sla-time-and-report-for-jira?tab=overview&hosting=cloud&utm_source=Atlassian_Community&utm_medium=referral&utm_campaign=Comment_Send-Email-automation-field-value&utm_term=20221219)