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?
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
@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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!
Start here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.