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,458,032
Community Members
 
Community Events
176
Community Groups

How to display custom field in email automation?

Hey Guys....I have custom fields, such as "Customer" (which is a drop down menu), "Non Conformity Type" which is multiple checkboxes in a list, and "Complaint Type" which is 2 options, 'internal or external' -- I'm trying to get them to display in the automated email that I have being sent when an issue is created. I also want to do it when an issue is Completed. Here is what I'm using below, but it doesn't return anything. It's blank....

 

Complaint Type: {{issue.COMPLAINT TYPE.name}}

Customer: {{issue.Customer.name}}

Non Conformity Type: {{issue.non conformity type.name}}

 

I know this isn't correct, can someone help me?

 

1 answer

1 accepted

0 votes
Answer accepted
Jack Brickey Community Leader Dec 28, 2022

Hi @Gregory James ,  Please try the following leaving off the ".name"

Complaint Type: {{issue.COMPLAINT TYPE}}

Customer: {{issue.Customer}}

Non Conformity Type: {{issue.non conformity type}}

Jack, thank you so much it worked, however CUSTOMER didn't work. But the others did. Perhaps its because I have 2 custom fields named Customer? so it doesn't know which one to pick?

or maybe because its in a  drop down menu? I actually checked I only have one custom field called CUSTOMER, which is a dropdown menu of about 110 items, I just want it to display which one is selected. should be "{{issue.CUSTOMER}}" right? or is it different with a list

Hi @Gregory James 

Is your Customer field a user field or a basic selection field?

  • If a user field, please try {{issue.Customer.displayName}}
  • And if a selection field, please try {{issue.Customer.value}}

Kind regards,
Bill

Nah Bill, didn't work, returns Blank values either command

Okay, let's try this...

Smart values are name, spacing, and case-sensitive...Perhaps the smart value you are using for the "Customer" field is not correct, and that would result in it always being null (empty).

You can check that by finding an example issue with a Customer set, and then use the following how-to.  Basically you call the REST API with a browser, and that will show all possible smart values for your fields.

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

Bill, I just used the customfield_00000 and it worked like a charm

Like # people like this
Jack Brickey Community Leader Dec 29, 2022

I am a bit perplexed as to why Bill's suggestion did not work unless there are two custom fields by the same name.

Hi, Jack!  Without seeing the result of the REST API call, I hypothesize possible causes could be:

  1. there are indeed two, or more, fields with the same name at that scope, as you note
  2. there is a trailing/leading space in the name of the field
  3. the smart value is lowercase
  4. and the less likely one...the field is somehow tied to an addon and has some dynamic behavior impact resolution.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events