Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


tbd. Thorsten Letschert

3 + 4 #Is an expression which evaluates to 7, with 3 and 4 being two constants
UI Text Box
sizemedium
typeinfo

An expression is an operation that evaluates its value, it is a combination of one or more constants, variables, functions, and operators that return another value.

Code Block
languagebash
titleExample 1
linenumberstrue

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.

They are used for almost every input that you can make in workflow functionsautomation rules and calculated fields.

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.

Basic text mode being the simplest one among the parsing modes allows to write free text and insert field codes. The other parsing modes support the usage of operators and expression parser functions.

Example expressions 

Parser expressionOutput


Code Block
languagebash
linenumberstrue
Hello World!



Panel
titleBasic text

Hello World!



Code Block
languagebash
linenumberstrue
"Hello World!"



Panel
titleBasic text

"Hello World!"


Panel
titleAdvanced text

Hello World!



Code Block
languagebash
linenumberstrue
"Summary: " + %{issue.summary}



Panel
titleBasic text

"Summary: " + My first issue


Panel
titleAdvanced text

Summary: My first issue



Code Block
languagebash
title
Example 2
linenumberstrue
4
3 
≠ 4 #This expression evaluates to false
+ 4



Panel
titleBasic text

3 + 4


Panel
titleAdvanced text

34


Panel
titleNumeric

7




Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Page status

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged

An expression basically contains of one or more of these elements:

  • 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-->