Getting email of a custom field User Picker in JETI template


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

This widget could not be displayed.

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! :)

This widget could not be displayed.

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

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

173 views 2 0
Join discussion

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