Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

i'm using automation for output in email but in email body below smart value is not working

Shiwanshu Singh May 23, 2025

The below Smart values is not working in my email body

<td>{{Impact Severity}</td>
<td>{{RFC Priority}}</td>
<td>{{issue.customfield_10064}}</td>

<td>{{issue.customfield_10070}}</td>

3 answers

0 votes
Hans Polder _Devoteam_
Community Champion
May 23, 2025

Hi Shiwansu,

Quick shoutout, in the underlined part below, I notice that there is only one }. This should always be two }} like you did with the others.

Can you please adjust this and let us know if your initial part works?

 

<td>{{Impact Severity}</td>
<td>{{RFC Priority}}</td>
<td>{{issue.customfield_10064}}</td>

<td>{{issue.customfield_10070}}</td>

Shiwanshu Singh June 3, 2025

I've identified the issue. When the query is executed, the severity field is returning a None value along with actual data. Due to this, the email is showing a blank entry. Is there a possible solution to handle this?


 serverity.png

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 23, 2025

Hi @Shiwanshu Singh 

Smart values are name, spacing, and case-sensitive...and they often do not exactly match the field name displayed on the work item views.  When an incorrect smart value is used, that returns as null, often failing silently in the rule.

Please find an example work item with your fields and then use this how-to article to identify the correct smart values (or custom field ID) to use:

https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

And if you do not see the field in the results, it may not be supported by automation rules.  In those cases, one may try directly calling the REST API endpoint rather than the Lookup Work Items action.

Kind regards,
Bill

Shiwanshu Singh May 23, 2025

This was helpful

Thanks 

Like Bill Sheboy likes this
Shiwanshu Singh May 23, 2025

Can you help me with this as well
i have two field business approval and technical approval and i got the value for technical approval but not getting for business approval

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 24, 2025

What are the types of those fields: text, single-select option, multiple-select option, user, etc.?

The field type impacts how they are accessed in rules.  You should be able to see how they are stored from the how-to article I provided.

 

Perhaps if you post your current complete rule and the Send Email Action details it will provide more context to help. Thanks!

Shiwanshu Singh May 24, 2025

bus ap.png

 

I want value for highlighted one
Please help 

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 25, 2025

For a single-select option field, please add the value attribute to get what you see in the dropdown list.  For example, if the work item is a single one, that would be:

{{issue.customfield_12345.value}}

Remember to use your smart value (or custom field ID) for the "Business Approval" field.

Shiwanshu Singh May 25, 2025

I had already tried, but I didn't get any value.

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 26, 2025

Please post the following as they may help explain this symptom:

  • an image of your complete rule in one single image for continuity
  • an image of the rule action where you are trying to use that smart value expression
  • an image of the audit log details showing the rule execution with all the areas a the right side expanded to show the impacted work items

Thanks!

0 votes
arielei
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 23, 2025

Hey @Shiwanshu Singh 
please share an image of the automation part where you send the email

Shiwanshu Singh May 23, 2025

invalid

Shiwanshu Singh May 23, 2025

and when i m adding log didn't get input
log.pnglog rule.png

arielei
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 23, 2025

Hey @Shiwanshu Singh 

Are the other custom fields appear in the email?
If so, are you sure they are present in the work-item?

 

Shiwanshu Singh May 23, 2025

yes rest all appear
And I'm sure the work-item is present

arielei
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 23, 2025

Hey @Shiwanshu Singh 
I suggest that you will write a log before you send the email with all the fields you want to send, and then run in without sending an email so you can play with it and see whats going on.

 

Furthermore, try to use the name of the field instead of "Custom Field_....".
you can also try using {{issue.field."Name Of Field"}} in all your cases.

 

Action in Automation is called "Audit Log" - try it and see what you got.

 

Good Luck

Ariel.

Shiwanshu Singh May 23, 2025

looggg.pngnot getting output for this

arielei
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 24, 2025

Hey @Shiwanshu Singh ,

See my last response, {{issue.fields}} is not enough, you need to specify the field name you want to see.

Like:
{{issue.field."Name Of Field"}} 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events