Status
Tech review

Style guide



On this page


Overview

Boolean expressions, or logical expressions, will always return or accept one of two distinct values: true or false


ExpressionBoolean value


3 < 5


true


3 > 5


false


"It is Monday"


true if it is actually Monday, false otherwise


Expressions can be combined or linked using operators to construct complex logical comparisons.


ExpressionBoolean value


"It is Monday" AND "It is Sunday"


false

At least if you are looking at a single time zone.


"It is Monday" OR "It is Sunday"


true if it is either Monday or Sunday, false otherwise



Logical expressions, which can currently be used in the logical parsing mode are built using the following components:

To ease into the logical expressions, we have prepared some examples on how you can construct more or less complex logical expressions. 


A full list of examples can be found here.



Basic elements

The table below lists all simple elements or operands that can be used in a logical expression.

s

ElementDescriptionExample

Output value

A boolean value of true or false
true, TRUE, false, FALSE

A quoted text or a text field code.
"This is a text"

Text lists are enclosed by square brackets. Not only literals can be used as elements, but also field codes.

["first element", "second element", %{issue.summary}]
STRING []

A numeric value or a numeric field code.
3

Number lists are enclosed by square brackets. Not only literals can be used as elements, but also field codes.

[5.1326, 3, 100000001, {issue.labels.length}]
NUMBER []

A specific value for comparisons if a field or another value is not set or equals null.
null

A specific time period: from SECOND to YEAR (in capital letters) in milliseconds
MINUTE, DAY, WEEK, MONTH

The weekdays in capital letters (MONDAY-SUNDAY) - internally  represented by a number 
TUESDAY

 

The months in capital letters (JANUARY-DECEMBER) - internally represented by a number 
JUNE



Jona Ittermann , Thorsten Letschert : Kleiner Mini-Screencast? Construct a logical expression (e.g. issue.priority = "High" OR xyz) AND count(subtasks()) >= 3 mit kurzer Einblendung der jeweiligen Elemente?