Forums

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

Automation Single User custom field, How to display the value in an email

Jody Johnson September 9, 2021

I'm trying to display the value of a single user select custom field, in an automation that's sending an email.  The automation executes correctly, but the value of the custom field does not display.

 

I'm using/have tried all of the following to get the value to display:

Expense/Invoice Approver: {{issue.Hiring Manager.displayName}}

Expense/Invoice Approver: {{issue.Hiring Manager}}

Expense/Invoice Approver: {{issue.get("Hiring Manager.displayName")}}

Expense/Invoice Approver: {{Hiring Manager}}

Expense/Invoice Approver: {{Hiring Manager.displayName}}

 

Any help would be greatly appreciated

3 answers

1 accepted

0 votes
Answer accepted
Jody Johnson September 11, 2021

The above still did not work.  I changed the name of the field name from Hiring Manager to HiringManager and now its working!!

 

Thanks all for helping me think this through.

0 votes
Gikku
Community Champion
September 9, 2021

Hi @Jody Johnson 

{{Hiring Manager.displayName}} should work and if not, probably there will an extra space to the field name somewhere.

You can also use the smart value as below to have the value added into the email where xxxxx is the custom field ID for 'Hiring Manager'

{{customfield_xxxxx.displayName}}

Regards
Gikku

0 votes
Roberto Miasack
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.
September 9, 2021

Hi!

 

The last form you wrote must be correct: {{Hiring Manager.displayName}}.

You can have more information here: https://support.atlassian.com/jira-software-cloud/docs/smart-values-users/

 

Please note that for the email to have the name of a user, this field must be filled.

Jody Johnson September 9, 2021

No its not working...see screenshot.

Jody Johnson September 9, 2021

2021-09-09_18-02-39.jpg2021-09-09_18-01-51.jpg

Roberto Miasack
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.
September 11, 2021

Hi, Jody!

 

Try change de custom field name in smart value for {{customfield_[number].displayName}}.

 

To find the custom field number, go to custom field context and see the website url:

Capturar1.PNG

 

See you!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events