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 the issue has been changed to the current status.

Expression

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

issue.changelogs.filter(changelog => changelog.items.some(item => item.fieldId == 'status' && item.toString == issue?.status?.name)).length

If it is only necessary to display the number of times that the issue has been in a specific status, replace issue?.status?.name with the name of the status between brackets, e.g. 'Rejected'.


Feature

Field type

Smart number field

Parsing mode

Jira expression

Expression
issue.changelogs.filter(changelog => changelog.items.some(item => item.fieldId == 'status' && item.toString == issue?.status?.name)).length
Label
Use case description

Return the number of times that the issue has been in the current status.

Complexity