These condition and validator are among the most versatile tools in JIRA Workflow Toolbox, thanks to a powerful parser for boolean expressions. They allow writing complex conditions based on the value of one or more field values, using simple logic syntax with comparison operators and logical connectives AND, OR and NOT.
Logical expressions can contain Numeric, Date-Time and Text-String terms. Field values of most types can be referenced, including Cascading Select and Multi-Cascading Select. You can also introduce literal values (numbers, text strings, Dates-Time, logical values (true, false) and null).
A comprehensive set of functions and macros is available to operate on Date-Time, Number and Text-String terms.
The only difference between Boolean condition with math, date-time or text-string terms and Boolean validator with math, date-time or text-string terms, is that condition hides the transition where is inserted when the logical expression returns "false", and validator shows a custom message. In most cases the use of the validator is preferable than condition, since you can inform the user about the reason why he cannot execute the transition.
In this example we implement a validation for checking that "Due date" has value at least 2 days greater than current date and time.
Note that:
Boolean condition with math, date-time or text-string terms and Boolean validator with math, date-time or text-string terms make use of the plugin's Expression Parser.
Collection of Boolean Expressions Examples