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

Compare with Current View Page History

« Previous Version 16 Next »

The JWT expression parser is the brain of JWT. It provides a huge set of functionalities to read and manipulate data from Jira issues, users, projects and more.

The main point of contact with the expression parser for the end user is the JWT expression editor.

Depending on what you are doing, you will be presented with different options and functionalities, but in the end it always comes down to writing an expression, which will be evaluated on runtime.

Jona Ittermann Bitte einen neuen Screenshot

Syntax check

Jona Ittermann Bitte einen neuen Screencast

  1. As you type in your expression the syntax check button is synchronized with your expression and you can see if your expression is valid or not.
  2. Click on the syntax check button to review your expression.
OutputDescription

Valid expression: The parser expression entered is valid.

Parsing error: The parser expression entered is not valid and you can do the following to fix the issue:

  • Check your selected Parsing mode
  • Try an example configuration from the right hand side of the configuration interface
Parsing mode selector


parsing mode determines how the JWT expression parser interprets an expression. 

The available parsing modes depend on the context you are using the expression in. As an example, only the Logical mode is available if you configure a conditional execution in a workflow post function or that you can only use the Numeric mode if you want to set a number field using a parser expression.

Read more about all available parsing modes.

Field code injector

The field code injector is a dynamic select list that lists all available field codes. The fields, or their values, will be be replaced with actual values at runtime .

The available fields and their notation depend on the selected Parsing mode. Depending on the parsing mode, numeric fields (including dates) can bei either inserted as text or a number.

Example injector

Need inspiration? Each parsing mode comes with built-in example expressions. If you choose an example from the dropdown menu, the expression will be automatically added to the editing area of the expression editor.

Run button

By clicking the Run button, a test expression panel is displayed 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)
  2. Click Run again


Handbook

Help is just a click away. If you click on the Help button, an in-line handbook will pop up, which provides information about almost any feature of JWT - from field codes, to Parsing modes and JWT expression parser functions.

Jona Ittermann Bitte einen neuen Screencast

Expression area

This is where you can enter a plain text and optionally use Field codes and JWT expression parser functions available in the selected parsing mode. 

Which options you will actually have, depend on the selected Parsing mode.

Tech tip: Auto-complete

A powerful feature of the editing area is auto-completion.

Pressing <CTRL> + <space> will show a searchable list of JWT expression parser functions  and available field codes.

Highlighting makes it easy to recognize essential parts of the expression.

Jona Ittermann Bitte einen neuen Screencast

Error rendering macro 'multimedia'

com.atlassian.renderer.v2.macro.MacroException: Cannot find attachment 'parser-field-auto-complete.mp4'


If you still have questions, feel free to refer to our support team.