This function returns the display name for a given Atlassian account ID. In case the given text is not a valid Atlassian account ID, an empty text is returned.

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

Parameters used in this function

ParameterInput (data type)Description
accountId

Text containing a valid Atlassian account Id.

This function returns a


Variant for multiple users.

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

To achieve this, the following function is used:

%{userDisplayName(["557058:145e0983-5707-439c-80e4-1160dd57f142", %{issue.reporter}])}

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

Bob Smith, Mary Jones

Parameters used in this function

ParameterInput (data type)Description
accountIdList

Any valid text list containing Atlassian account Ids.

This function returns a

If you want to return the Atlassian account Id instead of a display name, check out: userAccountId()


Use cases and examples


Status
Tech review

Style guide

Short description

Returns the display name of a given user.

Output

 

Available since


Label