Versions Compared

Key

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


Section


Column
width30%600px


Panel
borderColor#333f48
bgColor#FFFFFF
titleColor#eeeeee
borderWidth1
titleBGColor#333f48
borderStylesolid
titleOn this page

Table of Contents
maxLevel1



Column




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:



Usage Example

Incoming Links
labelsexample