Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Page properties
hiddentrue
Status
Tech review

Status
titletodo

Style guide

Status
titletodo

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

Page properties
hiddentrue
Short description

Returns the value of the user property with name propertyName which belongs to the user with user name userName.

Output StatussubtletruetitletextAvailable since

Status
subtletrue
colourBlue
title2.1.34

UI Text Box
sizemedium
typeinfo

This function returns the value of the a user property with name propertyName which belongs to the user with user name userName 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(string propertyName, string 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
xxxpropertyName

Status
subtletrue
titledata typetext

Text containing a valid user propertyParameter description.
xxxuserName

Status
subtletrue
titledata typetext

Text containing a valid user nameParameter description.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext





UI Text Box
sizemedium
typeinfo

The function returns the values of the user property with name propertyName in all the users whose names are contained in userNames.

The output will contain as many texts as users have the property setVariant for multiple users.


Code Block
languagebash
titleSyntax
linenumberstrue
userProperty(string propertyName, string list 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
xxxpropertyName

Status
subtletrue
titledata typetext

Text containing a valid user propertyParameter description.
xxxuserNames

Status
subtletrue
titledata typetext list

Comma-separated list of user names. Parameter description.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext list



Image AddedUse cases and examples

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


Page properties
hiddentrue
id1


Parser function cloud
Map(question)
Notes

Workaorund

Code Block
languagebash
issue.reporter.properties.get("key")

This should work, but it is not working for me.




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