Breadcrumbs

Count work item rejections

📚

This template displays the number of times that the Resolution field was set with the resolution “Rejected” in the current work item.

Configuration

To use the Count work item rejections 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:

 issue.changelogs.filter(changelog => changelog.items.some(item => item.fieldId == 'resolution' && item.toString == 'Rejected')).length

In case you have other statuses and resolutions, feel free to change these arguments: " item.fieldId == 'resolution' && item.toString == 'Rejected'"

Display as

Number

Formatting style

Default (unformatted)