🚀 JWT 3.0 is out 🚀 

The app was completely overhauled, and so was the documentation: Jira Workflow Toolbox (Server/Data Center) Home

The page you are viewing is still valid for all app versions prior to 3.0.

This function has been renamed with the JWT 3.0 release. 

Find the new documentation at:

Copy JWT user property

On this page


Purpose

This post-function allows to read the value of a user property and store the value in field of the issue.



Example: Read user property and store in virtual field

In the following screenshot we show how to read a current user's property called "Time Logged Last Day (minutes)", and store the content into virtual field "Ephemeral number 1":


Once configured, post-function looks like this:



FUNCTIONRETURNED VALUE
userProperty(string propertyName, string userName) : string
Available since version 2.1.34
Returns the value of the user property with name propertyName which belongs to user with user name userName. If the user doesn't have the property, null will be returned.
userProperty(string propertyName, string list userNames) : string list
Available since version 2.1.34
Returns the list of values of the user property with name propertyName in all the users whose names are contained in userNames. The output will contain as many strings as users have the property set.

JIRA Workflow Toolbox provides an  Expression Parser, which is used in many features of the plugin. This parser provides functions for reading the value of a user property.

These functions can be used in the following features of the plugin: