You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

This function returns the display name for a given Atlassian account ID.

Syntax
userDisplayName(accountId) #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
accountId

TEXT

Text containing a valid Atlassian account ID
Output

This function returns a TEXT


Variant for multiple users.

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

To achieve this, the following functions are used:

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

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
accountIdList

TEXT LIST

Any valid text list containing Atlassian account IDs
Output

This function returns a TEXT LIST

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


Use cases and examples