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

Compare with Current View Page History

« Previous Version 7 Next »

This function returns true only if the field has changed in the current transition.

When to use this function?

The function hasChanged(field_code) is used when we set a validation that is incompatible with a condition in the same transition, typically when validating a value entered in the transition screen. When Jira evaluates the validations in a transition, it also reevaluates the conditions, and if they are not satisfied an Action X is invalid error message is shown and the transition is not executed.

Syntax
hasChanged(%{nnnnn}) #Output: Boolean
Examples
Parser expressionDescription
hasChanged(%{00012})
We have a boolean condition {00012} = null (i.e., Due date = null) in a transition, so that it's only shown when Due date is empty. This transition also has a transition screen containing field Due date, and a boolean validation {00012} != null, in order to make Due date required in the transition.
The configuration described above will not work since both the condition and validation are mutually incompatible. We can fix it replacing the boolean condition with {00012} = null OR hasChanged(%{00012}).
Additional information

Parameters used in this function

ParameterInput (data type)Description
xxx

DATA TYPE

Parameter description.
Output

This function returns a BOOLEAN


This function returns true only if the numeric or date-time field has changed in the current transition.

Syntax
hasChanged({nnnnn}) #Output: Boolean
Additional information

Parameters used in this function

ParameterInput (data type)Description
xxx

DATA TYPE

Parameter description.
Output

This function returns a BOOLEAN


This function returns true only if the cascading select field has changed for level i (with root level = 0) in the current transition.

Syntax
hasChanged({nnnnn.i}) #Output: Boolean
Additional information

Parameters used in this function

ParameterInput (data type)Description
xxx

DATA TYPE

Parameter description.
Output

This function returns a BOOLEAN