Remove either the label use-case-smart-text or use-case-smart-number depending on the feature the use case is based on

Use case

Return the number of times that a custom field has been changed since the issue was created.

Expression

Create and configure a Smart field using this expression in Jira expression mode:

issue.changelogs.filter(changelog => changelog.items.some(item => item.fieldId == 'customfield_nnnnn')).length 

Please, replace nnnnn with the ID of your custom field in the above expression.



 


Feature

Field type

Smart number field

Parsing mode

Jira expression

Expression
issue.changelogs.filter(changelog => changelog.items.some(item => item.fieldId == 'customfield_nnnnn')).length 

Please, replace nnnnn with the ID of your custom field in the above expression.

Label
Use case description

Return the number of times that a custom field has been changed since the issue was created.

Complexity