Versions Compared

Key

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

This function returns the value of a user property for a given user.

If the user doesn't have the property set, en empty text ("") will be returned.

Code Block
languagebash
titleSyntax
linenumberstrue
userProperty(propertyName, userName) #Output: Text
UI Expand
titleExamples
Parser expressionDescription
Code Block
languagebash
linenumberstrue
userProperty("department", "b.smith")
This example returns the value for the user property department for the user b.smith, e.g.:
HR
UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
propertyName

Status
subtletrue
titletext

Text containing a valid user property.
userName

Status
subtletrue
titletext

Text containing a valid user name.
UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext


UI Text Box
sizemedium
typeinfo

Variant for multiple users.

Code Block
languagebash
titleSyntax
linenumberstrue
userProperty(propertyName, userNames) #Output: Text list
UI Expand
titleExamples
Parser expressionDescription
Code Block
languagebash
linenumberstrue
userProperty("department", %{issue.watcher})
This example returns the value for the user property department for all watchers of the current issue, e.g.:
HR, Finance, Dev
UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
propertyName

Status
subtletrue
titletext

Text containing a valid user property.
userNames

Status
subtletrue
titletext list

Comma-separated list of user names. 
UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext list

Page properties
hiddentrue

Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

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

Page properties
hiddentrue
Short description

Returns the values of user properties.

Output

Status
subtletrue
titletext

Available since

Status
subtletrue
colourBlue
title2.1.34

Label