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

Custom Field id not working in Smart Values

Edited

Hey all,

I am updating our email templates with field id's instead of the field name. But for some reason when I use the id, I get no results?

Looking around the forums and documentation I find some conflicting info and neither work.

 

The documentation here - https://support.atlassian.com/jira-software-cloud/docs/smart-values-general/

Says use: which neither actually work for me.

  • {{issue.CustomField.id}}
  • {{issue.CustomField.name}}

This is slightly confusing as I have been using, which I have never had a problem with.

  • {{issue.fields.CustomField}}

 

And after looking at this thread - https://community.atlassian.com/t5/Jira-Questions/Can-t-access-Custom-Field-value-in-Jira-Automation/qaq-p/730676

  • {{issue.fields."paste your field name here".value}}

I tried this and still nothing...

 

Any ideas?

 

 

3 answers

1 accepted

5 votes
Answer accepted
sreuter
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jul 26, 2020

@Hunter1428 To get the value of your field by id you can use this smart value: {{issue.fields.customfield_10040}} ..

Let me know how it goes! :)

This worked great, I feel silly for not just adding the id number at then end of {{issue.fields.CustomField}} haha

Thanks!

Like # people like this

Does this work with fields that have been added to a team-managed project's issue types? Team-managed works slightly differently in that you can add field templates to an issue using the Issue Types page. When I try using smart values like {{issue.fields.customfield_11308.value}} in my automation rules, it always returns nothing, for issues in my team-managed instance.

 

Heeelp!!

Like Olivia Chaney likes this

I am using something similar, 
I have a user picker field, and I am using 

{{issue.Approvers}}  - This gives me user id in return.
{{issue.Approvers.displayName}} - this returns me the Name of the person.

What should I use to get the email instead ?  Any ideas

Try {{issue.Approvers.emailAddress}}

Like Marc Isikoff likes this

Hi everyone, where do you find the IDs of your custom fields ? Is it necessary to be an administrator ?

Thanks.

Hey!

If you search the filter name in the JQL box, it will say the name and the ID :)

Go to Settings -> Issues -> Custom Fields -> Search for your field -> Click on ... (3 dots) -> then click on Edit Details

On this custom fields screen you will find the id within the URL (something like atlassian.net/...EditCustomField!default.jspa?id=10065)

Like # people like this

Or run a JQL query and choose your custom fields as a column; run the query then sort by your custom field and it will show the custom field #.

Hi, 

The following works fine to set security based on a custom field value

{
"update": {"security": [{"set": {"name": "{{issue.customfield_10054}}"}}]}
}

Guillaume.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events