Skip to main content
Skip table of contents

Count changes to current status

This template displays the number of times that the current work item was changed from any status to the current status.

Configuration

To use the Count changes to current status template, simply select it from the template grid. Filter by Status to find it faster.

Parameters

This template does not require any additional parameter configuration.

Expert mode

If you switch to Expert mode you can see the Smart field in the Expression Parser. You can now tweak the expression to create a custom smart field based on this template.

Expression

Jira expression:

CODE
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 work item has been in a specific status, replace issue?.status?.name with the name of the status between brackets, e.g. 'Rejected'.

Format

Default

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.