Forums

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

Question using smart values when creating automation

Derek Crawford
Contributor
October 8, 2021

When writing some automation for assignee, I was using {{Issue.Assignee}} but just realized the user work ID is being sent.  What should I use so I get the users actual name?  Would {{Issue.Assignee.displayname}} work?

1 answer

1 accepted

0 votes
Answer accepted
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.
October 8, 2021

Hi @Derek Crawford 

Please try this: {{issue.assignee.displayName}}

And note that smart values are mostly case-sensitive, so keep an eye on that when things do not work as you expect.  You may end up using a different value which has a different capitalization  :^)

Kind regards,
Bill

Derek Crawford
Contributor
October 8, 2021 edited

@Bill Sheboy Perfect I was wondering if case was sensitive.  Would it match the case of the field name?  If so, then shouldn't it be {{issue.Assignee.DisplayName}} where "Assignee" is capitalized in Jira?

Derek Crawford
Contributor
October 8, 2021

Or should Issue be capitalized as well?

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.
October 8, 2021 edited

No, it is {{issue}} and {{issue.assignee}}  Although, some things work in various cases, in my experience with automation rules.

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

Most of the built-in smart values use camel-case, where the beginning is lowercase and the start of each new word is uppercase.

The Jira views' UX field, smart value, automation rule UX, and REST API often appear to use different cases.  Even within smart values, some are not consistently the same pattern.  I am hoping that one day we get a better glossary for these values:

https://jira.atlassian.com/browse/JIRAAUTOSERVER-103

When in doubt, please try this technique to find the smart values for your fields:

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

Like • Dimitrina Ivanova likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, likes for trees, atlassian community, social impact, tree planting campaign, community kudos, atlassian giving, environmental impact, sustainability, likes for good, atlassian social responsibility, community challenge

Make every click count—help us plant 50,000 trees! 🌳

Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!

Help us plant more trees
AUG Leaders

Atlassian Community Events