This function returns the display name for a given user name.

Syntax
userDisplayName(userName) #Output: Text
Examples
Parser expressionDescription
userDisplayName(%{system.currentUser})
This example returns the display name of the current user, e.g.:
Bob Smith
Additional information

Parameters used in this function

ParameterInput (data type)Description
userName

TEXT

Text containing a valid user name.
Output

This function returns a TEXT


Variant for multiple users.

Syntax
userDisplayName(userList) #Output: Text list
Examples
Parser expressionDescription
toString(userDisplayName(%{issue.watcher}))
This example returns the display names of all watchers.

To achieve this, the following functions are used:

toString(userDisplayName(["b.smith", "d.jones"]))

This example returns the display names of all two users, e.g.:

Bob Smith, Dave Jones

To achieve this, the following functions are used:

Additional information

Parameters used in this function

ParameterInput (data type)Description
userList

TEXT LIST

Any valid text list.
Output

This function returns a TEXT LIST

If you want to return the user name instead of a display name, check out: fullNameToUser()