Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Send Email automation -field value

rsisauri December 13, 2022

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.PNGCapture31.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?


p.s. we are using JSM  data center 

2 answers

1 vote
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 13, 2022

Hi @rsisauri , can you simply this using the following example? Basically just use the JQL condition...

95E758B1-338A-4118-A7C1-2C2DF1F0C5D4.jpeg

rsisauri December 13, 2022

hello jack,

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

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 13, 2022

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.

rsisauri December 13, 2022

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

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 13, 2022

Regarding sending the email and incorporating custom fields into the body please see below example.

1) Example of issue view...

issue view.jpg

 

2) Automation rule...

 

rule.jpg

 

3) resulting email

 

result rmail.jpg

Like # people like this
rsisauri December 14, 2022

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 

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 14, 2022

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.jpg2022-12-14_10-40-45.jpg

0 votes
Kateryna_v_SaaSJet_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
December 19, 2022

Hi @rsisauri 
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. 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
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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events