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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,925
Community Members
 
Community Events
176
Community Groups

Send Email automation -field value

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 Dec 13, 2022

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

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

hello jack,

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

Jack Brickey Community Leader Dec 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.

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 Dec 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

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 Dec 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 Dec 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

Atlassian Community Events