Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

User Picker custom field in email template

Andrei Stoica July 29, 2020

Hello,

 

I have a custom field of type Single user Picker that I want to put in an email template

I am using: $issue.getCustomFieldValue($customField).fullName

but this doesn't resolve to anything.

I also tried: $issue.getCustomFieldValue($customField).getUserValue().fullName

but it still doesn't work.

 

What type of object does $issue.getCustomFieldValue($customField) return for Single User Picker custom field?

2 answers

1 accepted

0 votes
Answer accepted
Andrei Stoica July 30, 2020

If anyone is wondering, the solution is to use:
$issue.getCustomFieldValue($customField).getDisplayName()

0 votes
Andrei Stoica July 29, 2020

Using: $issue.getCustomFieldValue($customField)

returns: astoica(JIRAUSER10589) 

Suggest an answer

Log in or Sign up to answer