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

Compare with Current View Page History

« Previous Version 3 Next »

This validator evaluates the comparison of two (field) values

Configuration

Left-hand side value

Define the first of the two values that should be compared by selecting it from the list of available fields.

Depending on the type of the field you have selected only certain operators and fields in the right-hand side field selector are available.

Operator

Select how to compare the two given values. Choose from one of the following options:

OptionDescription

=

The first value must be equal to the second value.

!=

The first value must not be equal to the second value.

<

The first value must be less than the second value. This is typically used for comparing numeric or date-time values.

>

The first value must be greater than the second value. This is typically used for comparing numeric or date-time values.

<=

The first value must be less than or equal to the second value. This is typically used for comparing numeric or date-time values.

>=

The first value must be greater than or equal to the second value. This is typically used for comparing numeric or date-time values.

In case you have selected a field of the type LIST, only the equal and not equal operators are available.

Right-hand side value

Define the second of the two values that should be compared either by selecting it from the list of available fields or by entering a literal value.

The most common use case is to compare a field values provided by field codes.



If you need to compare multiple values or construct more complex comparisons make sure to have a look at the Jira expression condition.

Error message

You can optionally define a custom error message in case the validator fails, which will be shown to the user trying to execute the transition.

You have the following options:

Location

Define where the error message should be displayed. By default, the message will be shown at the top of the transition screen, or in case there is no transition screen, as a popup.

Alternatively, you can locate the message below any other field. This option only makes sense, if there is a transition screen defined for the specific transition.

Due to limitations in Jira Service Management, the location parameter will be ignored on Jira Service Management related screens. The location parameter only works for the Create Issue transition screen if JSD version 4.10 or higher is being used.

Message

Define the content of the error message in Basic text mode or Advanced text mode.

Learn more about the possibilities of the JWT expression editor.

In comparison to e.g. our calculated custom fields it is not possible to display HTML here. Displaying links to specific issues, for example, is not possible inside the error message.

Translations

After clicking on the Add translation button you can optionally translate the error message to other languages.

The language in which the error message will be displayed depends on the language setting of the individual users.


Use cases and examples


If you still have questions, feel free to refer to our support team.