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

Compare with Current View Page History

« Previous Version 16 Next »

tbdThorsten Letschert

Expressions are a fundamental concept within Jira Workflow Toolbox: every input into the JWT expression editor is considered an expression and will be interpreted by the JWT expression parser against the selected parsing mode.

Expressions range from simple text, e.g. Hello world!, over mathematical calculation, e.g. 3 + 4, to the extensive usage of expression parser functions and beyond.

Hello World!
Hello World! # Basic text
"Hello World!"
"Hello World!" # Basic text
Hello World # Advanced text
"Summary: " + %{issue.summary}
"Summary: " + My first issue # Basic text
Summary: My first issue # Advanced text
3 + 4
3 + 4 # Basic text
34 # Advanced text
7.0 # Numeric

Basic elements

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

All elements that can be used in a logical expression


ElementDescriptionExample

BOOLEAN

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

TEXT

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

TEXT LIST

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}]

NUMBER

A numeric value or a numeric field code.
3

NUMBER LIST

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}]

NULL

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

The BOOLEAN literal con only be used in the Logical mode, the conditional execution parameter of a workflow post function, or in combination with the conditional operator.

  • Field codes
  • Operators
  • Functions

Field codes are the heart.... and return different data types

.

.

.

Ultimately, what can be used in an expression depends on the parsing mode-→


Test-->