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

0 votes
Accepted answer

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
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,723 views 17 21
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