Hi All,
I am using the following Groovy script to extract last modified by username. However when I select Text field as the Template I get the username but when I select User Picker Template I get Anonymous. I need the full name to displayed and not just the username.
changeItems = componentManager.changeHistoryManager.getAllChangeItems(issue)
if (changeItems?.size()>0) {
componentManager.userUtil.getUserObject(changeItems.sort(false).last().user)
} else {
null
}
|
Text Field returns: username:12345
User Picker returns: Anonymous
Any suggestion?
Thanks!!