Versions Compared

Key

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


Page properties
hiddentrue


Tech review

Status
colourGreen
titletododone

Style guide

Status
colourGreen
titletododone

Page status

Status
colourGreen
titlecompletedone

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



Panel

On this page

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



UI Text Box
sizemedium
typeinfo

There are two ways to test

your

expressions

, the 

:

  • the Expression parser test page
and
  • (introduced with JWT 2.4.0)
  • the built-in expression preview in the JWT expression editor (introduced with JWT 3.0.0)

The main purpose the expression editor provided in each workflow function.The goal is always the same - : get a preview of the outcome of an expression . The results can vary from calculated dates to boolean values such as true, to check whether a validator or condition will passin order to deploy your configuration with confidence and without having to troubleshoot afterward.


The expression editor

When you want to test an expression directly in a JWT workflow function or calculated field configuration, you can instantly test and preview the results of in the JWT expression editor

The expression parser test page

The Expression parser test page is located centrally in the Jira administration:  Add-ons → Jira Workflow Toolbox → Expression parser test page.

UI Text Box
typetip

You want to test a logical expression or calculate a date? You simply want to know which values are currently stored in different issues? On the expression parser test page you can test all kinds of expressions since all Parsing modes are available.

Test Try adding a field code and play around with the different Parsing modes to preview the output!

5 steps to test your expression

UI Steps


UI Step

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


UI Text Box
typeinfo

The Expression parser test page does not support all field codes  . Field codes for transitional fields e.g. Transition comment, or the temporary fields are not supported.


UI Step

Click on the Run button .


UI Step

Select an issue you want to test your expression with.


UI Step

Confirm your selection by clicking on Run.


UI Step

Check the resulting output or analyze the potential errors.


Image Modified



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 indicates, if the current expression in the input field is syntactically correctcorrect  or not . The background check runs at least one second after the last input, but you can also push click the Syntax button for instant results.enforce a check immediately.

Multimedia
namejwt-syntax-check.mp4
width800
Jona Ittermann Kannst du bitte hier ein neues Video machen für? Das andere war für Cloud.


UI Expand
titleThe run button


Excerpt
Image Removed

Image Added

By clicking

on

the Run button, a test expression panel is displayed

under

below 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)
.
  • Click on Run
  • Jona Ittermann Kannst du bitte hier ein neues Video machen für? Das andere war für Cloud.
    1. Click Run again

    Multimedia
    namejwt-run-button.mp4
    width800



    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 with id 12202 is returning a value which is not a valid parameter for the function substring().

    Image Added


    UI Expand
    titleOutput of different data types

    When using the JWT expression editor, the expressions can return different values and types.

    Besides the expression entered, the selected parsing mode is mainly responsible for the returned value (and its type):

    Children Display
    pageParsing modes

    E

    Jona Ittermann Kannst du bitte auch noch die anderen Sektionen befüllen? Error messages/output etc?. Vielen lieben Dank!



    Excerpt Include
    DECADIS:Contact support
    DECADIS:Contact support
    nopaneltrue