Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


UI Text Box
sizemedium
typeinfo

The logical validator is one of the most powerful and versatile validators that can be used in JWT since it uses the full potential of the JWT expression parser functions.

This validator evaluates a logical expression that returns true or false. The transition will only be possible, if the result is true.


Configuration

UI Expand
titleExpression


The entered expression must return a true or false value.

UI Text Box
typetip

Test your expression by clicking the run button on the top right of the expression boxSince you only have a single parameter, an expression, you need to familiarize yourself with the Logical mode, which explains how to write logical expressions.



Choose from one of the following options (multi-choice is possible):

UI Expand
titleValidation options
OptionDescription

If the transition is triggered by a JWT post function, the validation will be skipped.

If the transition is triggered by a bulk operation, the validation will be skipped.

If the create transition is triggered by a clone operation, the validation will be skipped.

f the create transition is triggered by a mail handler, the validation will be skipped.

Include Page
DECADIS:_snip_skip validation
DECADIS:_snip_skip validation


UI Expand
titleError message

Include Page
DECADIS:_snip_error_message_validator
DECADIS:_snip_error_message_validator

Add an optional error message to show when validation fails.

Location

Define where the error message should be displayed.

Message

For the message content to be displayed when an error occurs, enter plain text and optionally use Field codes, e.g. %{issue.summary}, to insert field values.


UI Text Box
typetip

Test your expression by clicking the play button on the top right of the expression box.

UI Button
titleAdd translation

UI Text Box
iconfalse
typeinfo

Click on the Add translation button and choose the desired language to be translated to.

Translations will be displayed based on the user's language setting

If you want to use this functionality in a condition instead, have a look at the Logical condition.



Use cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
cqllabel = "use-case-workflow" and space = currentSpace() and parent = currentContent(ancestor in ("27066629","32215720")


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titletododone

Style guide

Status
colourYellowGreen
titleReady for reviewdone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged


Page properties
hiddentrue


Short descriptionEvaluate a logical expression that returns true or false.
Label

Status
colourRed
titlestaff pick



Page properties
hiddentrue
id1


Mapped(error)
Notes

Currently, this validation option is not available on JWT Cloud, only in server.