The condition Condition based on regular expression is not yet available in JWT Cloud, but you can implement it using the Jira expression condition.
As described in A general note about JWT for Jira Cloud, it is not possible to use the JWT field codes in conditions or validators. That is the reason why JWT Cloud cannot provide a one-to-one mapping of the fields which can be selected in this condition.
Create a Jira expression condition
You then have to create a Jira expression by transforming the parameters of the Condition based on regular expression.
The resulting Jira expression has the form
VALUE.match(Regular expression) != null
VALUE/Regular expression are the transformed parameters of Condition based on regular expression which are migrated as follows:
JWT DC | JWT DC option | JWT Cloud | Notes | ||||||
---|---|---|---|---|---|---|---|---|---|
Value | Value from field | Select the corrresponding field from the Field injector. | Not all fields known in the JWT DC parser are available as Jira expression field code. | ||||||
Set value manually (parser expression) | Translate the JWT DC parser expression to a Jira expression. | ||||||||
Regular expression | Enter the regular expression of the JWT DC parameter. | ||||||||
Additional options | Case insensitive | Prefix the regular expression by Example:
| |||||||
Multiline | Prefix the regular expression by | ||||||||
Dot all | Replace the ". " by "(.|\n) " in the regular expression. | ||||||||
Literal | Escape each of the special characters of the regular expression, e.g. \.\*\[JWT\] | ||||||||
Negate condition | Replace the != operator in the Jira expression by == |