🚀 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.

[2016-02-25] Released Jira Workflow Toolbox 2.2.8

New Features

  • New functions in the parser:
FUNCTION RETURNED VALUE
usersInRole(string projectRoleName) : string list\ Returns the list of user names (not be confused with full user name) of those active users playing project role with name projectRoleName in current issue's project. Parameter projectRoleName can be a comma separated list of project role names, returning the users that play any of the project roles.
usersInRole(string projectRoleName, string projectKey) : string list\ Equivalent to the previous function but with extra argument projectKey for selecting the project argument projectRoleName refers to.
usersInGroup(string groupName) : string list\ Returns the list of user names of those active users in group with name groupName. Parameter groupName can be a comma separated list of group names, returning the users that belong to any of the groups.
defaultUserForRole(string projectRoleName) : string\ Returns the user name of the Assign to project role playing project role with name projectRoleName in current issue's project, or null if no default user is defined for the project role.
defaultUserForRole(string projectRoleName, string projectKey) : string\ Equivalent to the previous function but with extra argument projectKey for selecting the project argument projectRoleName refers to.
lastAssigneeInRole(string projectRoleName) : string/\/ Returns the user name of the last user who had current issue assigned, and currently plays project role with name projectRoleName in current issue's project, or null if current issue was never assigned to a user currently in the project role.
lastAssigneeInRole(string projectRoleName, string issueKey) : string\ Returns the user name of the last user who had issue with key issueKey assigned, and currently plays project role with name projectRoleName in current issue's project, or null if current issue was never assigned to a user currently in the project role.
leastBusyUserInRole(string projectRoleName) : string\ Returns the name of the active user playing project role with name projectRoleName in current issue's project, and has the lower number of issues with resolution empty assigned; or null if there isn't any user in the project role. Parameter projectRoleName can be a comma separated list of project role names, returning the least busy users among the project roles.
leastBusyUserInRole(string projectRoleName, string projectKey) : string\ Equivalent to the previous function but with extra argument projectKey for selecting the project argument projectRoleName refers to.
textOnNumberList(number list numbers, string text_expression) : string list\ Returns a list of strings resulting of evaluating text_expression against each of the numeric values in argument numbers. Argument text_expression is an expression that returns a string, where ^ represents each numeric value in argument numbers.
Example: textOnNumberList([1, 2, 3, 4, 5], substring("smile", 0, ^)) returns string list ["s", "sm", "smi", "smil", "smile"].
mathOnNumberList(number list numbers, number math_time_expression) : number list\ Returns a list of numbers resulting of evaluating math_time_expression against each of the numeric values in argument numbers. Argument math_time_expression is a math/time expression, where ^ represents each numeric value in argument numbers.
Example: mathOnNumberList([1, 2, 3, 4, 5], ^ * 2) returns number list [2, 4, 6, 8, 10].
textOnStringList(string list strings, string text_expression) : string list\ Returns a list of strings resulting of evaluating text_expression against each of the strings in argument strings. Argument text_expression is an expression that returns a string, where ^% represents each string in argument strings.
Example: textOnStringList(["albert", "riCHard", "MARY"], capitalizeWordsFully(^%)) returns ["Albert", "Richard", "Mary"].
mathOnStringList(string list strings, number math_time_expression) : number list\ Returns a list of numbers resulting of evaluating math_time_expression against each of the issues in argument issues. Argument math_time_expression is a math/time expression, where ^% represents each string in argument strings.
Example: mathOnStringList(["a", "ab", "abc", "abcd", "abcde"], length(^%)) returns [1, 2, 3, 4, 5].

Improvements

  • Function previousValue() now can return null with numeric fields for indicating that a field was previously unset.
  • Functions toNumber() and stringToDate() now return null when can't parse the string argument. In previous versions an error was thrown.
  • Functions first() and last() now returns null when used on empty string or number lists. In previous versions an error was thrown.
  • Function nthElement(list, index) now returns null when index argument is greater than the number of elements in list argument.
  • Improvement in parse error reporting in Boolean condition and validator with math. date-time or text-string terms.

Bug Fixes

  • Issue #239 - Reflexive generic transition not working
  • Issue #240 - Bug in addDaysSkippingWeekends() and related functions.
  • Issue #238, Issue #248 - CRITICAL FIX - Transitionning of parent issue, linked issues, subtasks and JQL selected issues could stop working in Jira 7.x
  • " Set a field as a function of other fields" post-function by default type 1 setting rules only evaluated first line in fields with more than one line, like issue "Description".
  • Issue #243