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


userDisplayName(userName) #Output: Text



Parser expressionDescription


userDisplayName(%{system.currentUser})


This example returns the display name the current user, e.g.:
Bob Smith



Parameters used in this function

ParameterInput (data type)Description
userName

Text containing a valid user name.



This function returns a




Variant for multiple users.


userDisplayName(userList) #Output: Text list



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:



Parameters used in this function

ParameterInput (data type)Description
userList

Any valid text list.



This function returns a


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



Use cases and examples




Status
Tech review

Style guide




Short description

Returns the full name of a given user.

Output

 

Available since

Label