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

Compare with Current View Page History

« Previous Version 6 Next »

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
ValueValue 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 optionsCase insensitive

Prefix the regular expression by (?i)  ((info)without whitespace between (?i) and the remaining regular expression)

Example: 

JWT DC regular expressionJira expression regular expression 
Important Task
(?i)Important Task
.*[JWT]
(?i).*[JWT]


Multiline

Prefix the regular expression by (?m)  ((info)without whitespace between (?m) and the remaining regular expression). In case you already have a (? ) prefix, add m there.



Dot allReplace the "." by "(.|\n)" in the regular expression. 

Literal

Escape each of the special characters of the regular expression, e.g.

\.\*\[JWT\]


Negate conditionReplace the != operator in the Jira expression by ==