Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
UI Text Box
sizemedium
typeinfo

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.

Code Block
languagebash
titleSyntax
linenumberstrue
userDisplayName(accountId) #Output: Text
UI Expand
titleExamples
Parser expressionDescription
Code Block
languagebash
linenumberstrue
%{userDisplayName(%{system.currentUser})}
This example returns the display name of the current user, e.g.:
Bob Smith
UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
accountId

Status
subtletrue
titletext

Text containing a valid Atlassian account Id
UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext


UI Text Box
sizemedium
typeinfo

Variant for multiple users.

Code Block
languagebash
titleSyntax
linenumberstrue
userDisplayName(accountIdList) #Output: Text list
UI Expand
titleExamples
Parser expressionDescription
Code Block
languagebash
linenumberstrue
%{userDisplayName(toStringList(%{issue.watcher}))}
This example returns the display names of all watchers.

To achieve this, the following function is used:

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

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

Bob Smith, Mary Jones

UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
accountIdList

Status
subtletrue
titletext list

Any valid text list containing Atlassian account Ids
UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext list

UI Text Box
typetip

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


Use cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Field type, Automated action, Parser functions
cqllabel = "parser_func_userdisplayname" and space = currentSpace()

Page properties
hiddentrue

Status
Tech review

Status
colourYellow
titleReady for review

Style guide

Status
colourYellow
titleReady for review

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged

Page properties
hiddentrue
Short description

Returns the display name of a given user.

Output

Status
subtletrue
titletext
 
Status
subtletrue
titletext list

Available since


Label