🚀 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

« Previous Version 4 Next »

Features used to implement the example



Example: Set "Due date" depending on the value of other fields, in case it's uninitialized

I'm trying to create a post-function with this logic:

  • The basic version:
    If the field DUE DATE is null, then insert this value to the DUE DATE field: CreatedDate + 3 Days
  • The more complicated version:
    If the field DUE DATE is null, and the PRIORITY = Major, then insert this value in the DUE DATE field: CreatedDate + 2 hours

You have to use post-function Set a field as a function of other fields of Jira Workflow Toolbox plugin with the following configuration:

Text to be parsed is:

[{00012}=null AND %{00017}="Major"]{00009}+2*{HOUR}
[{00012}=null]{00009}+3*{DAY}


Notice that:

  • {00012} is the field code for numeric value of field Due Date
  • {00009} is the field code for numeric value of field Date and time of creation
  • %{00017} is the field code for string value of field Priority

Value of parameter "Field to be checked for matching with type 1 setting rules" has no effect, since we are not using type 1 setting rules.

Setting rules are evaluated in order, and once a rule is matched, the rest of the rules are not processed. That's the reason we write in first place the most restrictive setting rule (Due Date = null and Priority = Major), and in second place the most general one.

Once configured, the transition will look like this:




Other examples of that function

Related Usage Examples