Getting email of a custom field User Picker in JETI template

Pujan Ziaie October 23, 2017

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!

3 answers

1 accepted

1 vote
Answer accepted
Pujan Ziaie October 26, 2017

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

Roberto Vargas June 14, 2019

hi, can you help me to  initialize multiple fields on JETI Cloud?

 

This is the mail body:
I actually need to initialite this fields of this email body, i have created custom text fields for all of it:

Número de Incidente
INCS00000881245

Aplicativo
PAGR PORTAL DE LA AGR EN LA INTRASAT

 

I need to initialize Número de Incidente and Aplicativo

 

i use this regex for each configuration: 

.*Número de Incidente(.*)
.Aplicativo(.*)

 

But nothing happend.

0 votes
Michael Saeed March 1, 2020

this also works.

$!issue.reporter.email

 

0 votes
Pujan Ziaie October 25, 2017

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

Suggest an answer

Log in or Sign up to answer