Hi,
I have a custom field of type user picker. When I put the following code into an email template:
$issue.getCustomFieldValue("customfield_10094") it simply output the username:1, i.e. "productionmanagertest:1"
If I copy the code for the assignee output in another template, and use
#authorlink2($issue.getCustomFieldValue("customfield_10094") $linkstyle)
then I get nonsense out:
$userformat.formatUser($username, 'profileLinkExternal', 'email', ${velocityhelper.newMap('style', $style)})
How do I code the email template to show the full name of the user selected by the user picker custom field - in this case "Production Manager Test".
Many thanks for any help given,
James.
Community moderators have prevented the ability to post new answers.
Try this out:
#authorlink($issue.getCustomFieldValue("customfield_10094").name)
Hi Pranjal,
Thank you very much. That worked perfectly.
Best regards
James.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is this a username?
productionmanagertest:1
Looks like you have :1 at the end. If you use the macro after removing that extra characters, it should work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jobin,
Thanks for responding. Although not sure I follow. The username for this user is just "productionmanagertest" so I have no idea where the extra :1 is coming from.
Not sure also about what you mean by "If you use the macro ..... it should work.". What macro are you referring to - all I am trying to do here is put some code in the notification email xxxxxx.vm file.
Many thanks
James.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.