The general parsing mode is a powerful mode where you can write free text, insert field codes or use JWT expression parser functions anywhere in your text.
Field codes will be replaced at runtime with the corresponding field values of the issue currently being processed. Using functions for replacing substrings, changing cases, reading fields in linked issues, sub-tasks, JQL selected issues, and much more we can do much more complex operations. It requires the text to be parsed to be written as a string expression respecting the parser syntax which is described below.
The general mode is generally the preferred mode if you want to set or update values (from fields to issue types) based on a JWT expression. It is currently only available when configuring Post functions.
Example expressions
Parser expression | Description |
---|---|
3 < 5 | This example returns:
|
3 > 5 | This example returns:
|
Expressions can be combined or linked using operators to construct complex logical comparisons.
Parser expression | Description |
---|---|
3 < 5 AND 7 > 5 | This example returns:
|
%{issue.assignee} = %{issue.reporter} | This example returns:
|
%{
generally indicates the use of a field code or JWT expression parser functions. If you want to use this combination of characters in your free text, they need to be escaped by "\":
You want to use these characters as free text... | ... you need to to write this |
---|---|
%{ | \%\{ |
The operators, their meaning and the applicable data types you can use them with are listed below. A comparison always returns a BOOLEAN value. The table below lists all logical operators that can be used for linking logical terms in an expression. They take logical terms (which return BOOLEAN values) as operands and can thus be built using: Logical operators can only be used in logical expressions in the Logical mode or in combination with the conditional operator. The conditional operator, ?-operator, is a powerful one to construct conditional expressions. It basically allows you to construct the following expression: IF logical_expression Comparison operators
Logical operators
Conditional operator
true
THEN term_1 ELSE term_2.<logical_expression> ? <term_1> : <term_2>