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

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

[2017-08-21] Released JIRA Workflow Toolbox 2.2.41

Improvements

FUNCTION RETURNED VALUE
addTime(number base_instant, number offset, string schedule_name, timeZone time_zone) : number Returns the time instant resulting of adding offset milliseconds to base_instant within schedule with name schedule_name for time_zone timezone.
Example: addTime(2017/12/01 01:00, 8 * {HOUR} + 31 * {MINUTE}, "my_schedule", LOCAL) returns 2017/12/04 10:01.
Example:addTime(2017/12/04 14:00, 2 * {HOUR} + 30 * {MINUTE}, "my_schedule", LOCAL) returns 2017/12/04 17:00.

Since version 2.2.41 negative offset values are supported:
Example:addTime(2017/04/24 09:00, - 2 * {HOUR}, "my_schedule", LOCAL) returns 2017/04/21 14:00.
Example:addTime(2017/04/20 20:30, - 5 * {HOUR}, "my_schedule", LOCAL) returns 2017/04/20 13:00.

In the examples above we have used schedule "my_schedule", whose definition in Schedules Definition Grammar is:



Note that 2017/12/01 is Friday, and 2017/12/04 is Monday.

  • The following numeric fields will be considered as initialized by " A field is/isn't initialized or has/hasn't been modified" condition and validator only when returned value is greater than zero:
    • Original estimate
    • Remaining estimate
    • Total time spent
    • Work logged in transition
    • Number of fixed versions
    • Number of affected versions
    • Number of votes received
    • Number of subtasks
    • Number of linked issues
    • Number of attachments
    • Number of transition's attachments
    • Number of labels

Bug Fixes

  • Post-function " Create issues and sub-tasks" fails when we have a configuration using an issue type that has been removed from the JIRA instance.
  • Functions toNumber() and stringToDate() threw an exception when input parameter was a null instead of a string.