userDisplayName()

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

Bash
userDisplayName(userName) #Output: Text
Examples

Parser expression

Description

Bash
userDisplayName(%{system.currentUser})

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

Bob Smith

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

userName

text

Text containing a valid user name.

Output

This function returns a text


Variant for multiple users.

Bash
userDisplayName(userList) #Output: Text list
Examples

Parser expression

Description

Bash
toString(userDisplayName(%{issue.watcher}))

This example returns the display names of all watchers.

To achieve this, the following functions are used:

Bash
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

Parameter

Input (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()


📚 Use cases and examples