On this page

Use case

Check the number of times that a field has changed.

This use case is valid for both conditions and validators. The only difference is that you can specify an additional error message when using a validator.

Configuration

Jira expression*

issue.changelogs.filter(element => element.items.some(item => item.fieldId == 'labels')).length > 0

The number of all changes of the FieldID = "labels" is greater than zero.

Variations

Jira expression*

issue.changelogs.length > 0

The number of all changes is greater than zero.

Jira expression*

issue.changelogs.filter(element => element.created > new Date().minusMinutes(5)).length > 0

The number of all changes in the last 5 minutes is greater than zero.

Jira expression*

issue.changelogs.filter(element => element.items.some(item => item.fieldId == 'labels') && element.created > new Date().minusMinutes(5)).length > 0

The number of all changes of the FieldID = "labels" from the last 5 minutes is greater than zero.


Related use cases


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