Versions Compared

Key

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


Panel

On this page

Table of Contents
exclude(On this page).*
typeflat
separatorpipe

UI Text Box
sizemedium
typeinfo

It is We highly recommended to test your Jira expression before publishing the workflow.

To test an expression simply select an existing issue and click on Evaluate.

You might encounter the following four responses :

5 steps to test your expression

ui-steps
UI Steps


UI Step

Type in your expression or select one of the built-in examples.


UI Step

Click on the Run button Image Added


UI Step

Select an issue you want to test your expression with.


UI Step

(tick) The value returned by the expression

In order to deal as a condition, the Jira expression expects the return of a boolean true or false. When developing the expression used as a condition it may help to evaluate intermediate results that do not return a boolean value.

UI Text Box
typenote
If you just enter a field code without any comparison operator you will simply get the value as a response!

In this use case, "Task" will be returned as the current issue type.

UI Text Box
typenote

When storing this expression as it is, the condition evaluates to false, since with Jira's expressions any non-boolean value will be considered as false.

Image Removed

UI Step

(tick) True

This response indicates that the expression itself is valid and the test issue (KANBAN-1) is in a status called "To Do"

Image Removed

UI Step

(tick) False

This response indicates that the expression itself is valid but the test issue (KANBAN-1) is NOT in a status called "ToDo"

Image Removed

Confirm your selection by clicking on Run


UI Step

Check the resulting output or analyze the errors.



UI Expand
titleSyntax check

Before running your expression against a certain issue, it's recommended to check if the syntax is correct.

The syntax check button shows if the current expression in the input field is syntactically correctImage Added or not Image Added. The background check runs at least one second after the last input, but you can also push the Syntax button for instant results.

Multimedia
nameparser-field-parser-error.mp4
width700



UI Expand
titleThe run button

Image Added

By clicking on the Run button, a test expression panel is displayed under your expression. To test your expression, do the following:

  1. Select an issue that you want to test your expression with (as the current issue).
  2. Click on Run


Multimedia
nameparser-field-run-button.mp4
width700



UI Expand
titleError messages

Even if the syntax of the expression is correct, it may happen that the expression result is erroneous, e.g. when fields are empty.

In the example below the value of the custom number field "cf10041" is returning a value which is not valid parameter for the function substring().

Image Added


UI Expand
titleOutput of different data types

Depending on the Parsing modes and the expression itself, different Data types are being returned as a result of the expression.

UI Expand
titleGeneral mode

Expressions written in the General mode will return texts.

Image Added


UI Expand
titleLogical mode

Expressions written in the Logical mode will return a boolean value of true or false.

Image Added


UI Expand
titleJira expression mode

Expressions written in the Jira expression mode will return objects based on Data types (Jira expressions).

Image Added



UI Expand
titleTesting a complex expression

When composing complex expressions, e.g. in Logical mode or the Jira expression mode, where you compare values we recommended to:

UI Steps


UI Step

Create individual expressions for the operands of the comparison.


UI Step

Test each expression separately within the selected Parsing modes.


UI Step

Merge the individual expressions and test the complete expression

UI Step

Error

There is a syntax error in the specified expression. In this case a missing ' at the end of the expression.

Image Removed






Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue

...