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.

Syntax
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

Text containing a valid Atlassian account ID.

This function returns a TEXT


Variant for multiple users.

Syntax
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

TEXT LIST

Any valid text list Atlassian account IDs.

This function returns a TEXT

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


Use cases and examples