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

Compare with Current View Page History

« Previous Version 3 Next »

Jira expressions follow technically speaking the JavaScript syntax. The most common information is listed below. To learn more about, please refer to the official documentation.

Comparison operators

The operators, their meaning and the applicable data types you can use them with are listed below.

A comparison always returns a BOOLEAN value.

Overview of all case-sensitive comparison operators

All operators respect the case of the characters.

OperatorMeaningExamples (all examples return true)
== equal to
1==1
true == true
[1, 2, 3] == [1, 2, 3]
["blue", "red", "green"] == ["blue", "red", "green"]
!= not equal to
0 != 1
"HELLO" != "Hello"
true != false
[1, 2, 3] != [1, 3, 2]
["blue", "red", "green"] != ["blue", "green", "red"]
< less than
1 < 2
"abc" < "bbc"
"abc" < "abcd"
> greater than
2 > 1
"bbc" > "abc"
"abcd" > "abc"
<= less than or equal to
3 <= 3
>= greater than or equal to
"Hello world! Hello *" >= "Hello world"

Logical operators

The table below lists all logical operators that can be used for linking logical terms in an expression.

They take logical terms (which return BOOLEAN values) as operands and can thus be built using:

  • a boolean value
  • a comparison
  • a logical term enclosed by brackets ()
  • two logical terms connected with a logical operator, where boolean literals and comparisons themselves are logical terms.


Overview of all logical operators

Operator

Meaning

Precedence

! logical negation1 (highest)
& logical conjunction2
| logical disjunction3

A single logical term can be enclosed by brackets () in order to increase the readability of the expressions or to define a precedence which differs from the given one.

Logical operators can also be written in lower case (e.g. and , or )