On this page |
The JWT expression parser accepts the most common comparison operators as well as logical operators.
The main purpose of these operators is to construct complex logical comparisons by linking individual expressions.
The operators and their meaning are listed below - the applicable data types for the elements (operands) of the respective operators can be found in the subsequent table.
A comparison always returns a value. |
!= not equal to |
< lower than |
> greater than |
<= less than or equal to |
>= greater than or equal to |
~ contains |
!~ does not contain |
in is contained in | "world" in "Hello world!" , to check whether a substring is contained in a string. %{system.currentUser} in %{issue.components.leads} , checks whether "Current user" is contained in "Component leads". [1, 1, 2] in [2, 1, 1, 1, 4] , cardinalities of every single element must match. ["blue", "red", "red"] in ["red", "green", "blue", "red", "red"] , cardinalities of every single instance of an element must match. 2 in [1, 2, 3] "blue" in ["red, "blue", "white"] not in is not contained in | "Hello world!" not in "world" %{issue.versions} not in %{issue.fixVersions} , checks whether not all versions in "Affects version/s" are contained in "Fix version/s". [1, 1, 2, 2] not in [2, 1, 1, 1, 4] , cardinalities of every single element must match. ["blue", "red", "red", "blue"] not in ["red", "blue", "red", "red"] , cardinalities of every single instance of an element must match. 5 not in [1, 2, 3, 3, 4] "orange" not in ["blue", "red", "white"] any in some element is in | %{issue.versions} any in %{issue.fixVersions} , checks whether any version in "Affects version/s" is contained in "Fix version/s". [1, 3] any in [3, 4, 5] ["blue", "white"] any in ["black", "white", "green"] none in no single element is in | %{issue.versions} none in %{issue.fixVersions} , checks whether there isn't a single version "Affects version/s" in "Fix version/s". [1, 2] none in [3, 4, 5] ["blue", "red"] none in ["black", "white", "green"] |
The table below lists all logical operators that can be used for linking logical terms in an expression.