Getting email of a custom field User Picker in JETI template

Hello,

When I use 

Version1: #renderCustomField($!issue, 'customfield_10138')

in JETI template, I get The user fullname plus its avatar. What I need is to show the email address of the user in this custom field. How can I achieve this?

#renderCustomField($!issue, 'customfield_10138').emailAddress returns empty string plus ".emailAdress". I'm lost! :)

By the way $!issue.getCustomFieldValueAsObject('customfield_10138').displayName doesn't work either (it's empty).

Any help would be much appreciated!

2 answers

1 accepted

So I got the answer from META-INF Service Desk:

  • On cloud, the method is slightly different: $!issue.getCustomFielValue("customfield_12345").getUserValue().email

Hope it saves others a few hours of headache! :)

Ha, didn't think it's so complicated...

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

121 views 4 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you