hasChanged()

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


When to use this function?

The function hasChanged() 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 re-evaluates the conditions, and if they are not satisfied an error message is shown and the transition is not executed.


Bash
hasChanged(textField) #Output: Boolean


Examples

Parser expression

Description

Bash
hasChanged(%{issue.description})

This example returns true if the issue's description has changed during the current transition.

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

textField

text

Any given text field code.

Output

This function returns a boolean


Variant of number and date-time fields.


Bash
hasChanged(numberField) #Output: Boolean


Examples

Parser expression

Description

Bash
hasChanged({issue.dueDate})

This example returns true if the issue's due date has changed during the current transition.

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

numberField

text

Any given numeric field code.

Output

This function returns a boolean


📚 Use cases and examples