Skip to main content
Skip table of contents

Operators

Workflow Enhancer for Jira allows you to use the following operators to compare fields or macros to a predefined value.

Logical Operators

Description

Operator

AND

& (alternatively && or AND)

OR

| (alternatively || or OR)

NOT

!

Parentheses

( )

Comparison Operators

Description

Operator

Equal

= (alternatively ==)

Not equal

!=

Greater

>

Greater or equal

>=

Less

<

Less or equal

<=

Which types of fields and values can be compared against each other with order operators is described in the expandable section below.

Comparison Operations

The following matrix shows which values allow order operations and how they are defined.

String

Float

Date

Real Timespan

Labor Timespan

Regular Expression

String

s

default

default

default

default

r

Float

default

f

default

default

default

default

Date

default

default

d

default

default

default

Real Timespan

default

default

default

t

t

default

Labor Timespan

default

default

default

t

t

default

Regular Expression

r

default

default

default

default

default

Order operations are possible if the field at the crossing point is not empty. The type of the operation is explained in the legend.

Type

Explanation

Example

s

Lexicographical comparison based on the Unicode value of each character in the Strings.

"zoo" >= "a much longer String but with an a at the beginning", "2 test Strings" < "A test String without a number at the beginning"

f

Standard comparison of numbers.

4.5 < 42, 7.77 >= 2.2222

d

The time is considered if and only if both values match the pattern dd.mm.yyyy hh:mm.

24.12.2012 15:30 = 24.12.2012, 24.12.2012 15:30 < 24.12.2012 16:00

t

Number comparison of the timespan values converted to minutes.

1w > 1min, 1h <= 61min, 1d 1h = 1d 1h

r

Equal if and only if the String matches the regular expression.

"Bar"= /Ba[a,r]/, /Ba[a,r]/ > "A"

default

Lexicographical comparison after both values have been converted to String.

10.10.2000 = "10.10.2000", 10.10.2000 < "a String"

42 = "42.0", "0 A String with a zero at the beginning" < 42

"1w 0d 0h 0min" = 1w, 1w >= "1w 0d 0h 0min"

Arithmetic Operators

Description

Operator

Plus

+

Minus

-

Which types of fields and values can be added or subtracted is described in the expandable section below.

Arithmetic Operations

Addition

The following matrix shows between which values additions are possible and how they are defined.

String

Float

Date

Real Timespan

Labor Timespan

Regular Expression

String

s

Float

f

Date

d

Real Timespan

d

t

t

Labor Timespan

t

t

Regular Expression

Additions are possible if the field at the crossing point is not empty.

Type

Explanation

Example

s

String concatenation.

"An" + "na" = "Anna"

f

Standard addition of numbers.

1.5 + 3 = 4.5

t

Standard addition of timespan values based on minutes.

If the timespan values do not have the same type (i.e., not both real or both labor), the result has the type of the first operand.

1w 2d 3h + 2w 2d 2h = 3w 4d 5h

1D + 1h = 1D 1H

d

The timespan value is added to the date. If the date has no entered time, hours and minutes do not matter.

(12.10.2016 + 14H) + 12H = 12.10.2016, 12.10.2016 + 1W 3D = 22.10.2016

Subtraction

The following matrix shows between which values subtractions are possible and how they are defined.

String

Float

Date

Real Timespan

Labour Timespan

Regular Expression

String

Float

f

Date

d

Real Timespan

d

t 

Labor Timespan

t

t

Regular Expression

Subtractions are possible if the field at the crossing point is not empty.

Type

Explanation

Example

f

Standard subtraction of numbers.

4.5 - 3 = 1.5

t

The subtraction of two timespans returns the absolute difference based on minutes.

If the the timespan values do not have the same type (i.e., not both real or both labor), the result has the type of the first operand.

8w 1d 3h - 8w 2d 4h 9min = 1d 1h 9min

2h - 1H = 1h

d

The timespan value is subtracted from the date. If the date has no entered time, hours and minutes do not matter.

(29.05.2015 - 12H 5MIN) - 12H 5MIN = 29.05.2015, 29.11.2019 - 6D = 23.11.2019

The subtraction of Date values is not supported. Use, e.g.,  {Date A} < {Date B} + 1W  instead of comparing the difference of the dates to a week. 

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.