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

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,319 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot