The Logical condition of JWT DC is not available in JWT Cloud , but can be implemented easily using a Jira expression condition . Since JWT DC field codes are not available in conditions or validators in JWT Cloud, they have to be replaced by their Jira expression equivalent. |
|
The field codes supported by Jira expressions differ from the JWT ones (please see our comprehensive Field codes section). The can be inserted using the field code injector within the expression editor. For further details about Jira expression field codes please refer to Atlassian's documentation.
JWT DC | Jira expression | Notes | |
---|---|---|---|
= | == | ||
!= | != | ||
< | < | ||
<= | <= | ||
> | > | ||
>= | >= | ||
~ | .includes() | Example:
| |
!~ | !...includes() | Example:
| |
IN | .every....includes() | Example:
| |
NOT IN | ! every....includes() | Example:
| |
ANY IN | .some()....includes() | Example:
| |
NONE IN | !....some()....includes() | Example:
|
Jira expression functions are based on the respective data type and are related to JavaScript notion. Details of the available functions can be found in Atlassian's documentation.
JWT DC use case | JWT DC parser expression | Jira expression | |||
---|---|---|---|---|---|
Make "Time spent" field required |
|
| |||
Block an Epic's transition until all the issues under that Epic are resolved |
|
| |||
Block a transition until all sub-tasks have certain fields populated |
|
|
Due to the different architecture, it may happen that the condition gets too complex. This is the case when many fields are checked. The condition cannot be saved, and a corresponding error message will be displayed. If that's the case, the condition has to be split up into two or more. |