The logical condition is one of the most powerful and versatile conditions that can be used in JWT since it uses the full potential of the JWT expression parser functions.
This condition evaluates a logical expression that returns true or false. The transition will only be available, if the result is true.
โ๏ธ Configuration
Expression
Since you only have a single parameter, an expression, you need to familiarize yourself with the Logical mode, which explains how to write logical expressions.
Examples
|
Parser expression |
Description |
|---|---|
|
Simply returns false. You can use this expression for "switching off" a specific post function. |
|
A numerical comparison which returns true if the parent issue has more than 5 votes. |
|
A logical conjunction which takes two comparisons as operands. It returns true when the assignee of the issue is the project lead and if it's a Bug. The second expression has the same meaning but due to use of brackets may be more readable. |
|
Returns true if the issue does not have an assignee. This expression uses the null value as an operator. |
|
Returns true if the Priority has the value "Blocker" or "Critical". The first expressions uses a list whereas the second one uses single comparisons connected via the logical operator OR. |
|
Returns true if Affects version/s is set whenever the issue type equals "Bug". |
|
Returns true if Priority is "Blocker", "Critical" or "Major", the issue is assigned and Due date is set. |
|
Returns true if Labels (which is a field holding a text list ) contains "Blocker", "Critical" or "Major". |
If you want to use this functionality in a validator instead, have a look at the Logical validator.