This template displays the number of fix versions in the current work item.
Configuration
To use the Count fix versions template, simply select it from the template grid. Filter by Versions 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 formula field in the Expression Parser. You can now tweak the expression to create a custom formula field based on this template.
Expression
General expression:
%{issue.fixVersions.length}
Display as
Number
Formatting style
Default (unformatted)
Details
1. What does the expression do?
The expression counts how many fix versions are in the current work item.
2. Step-by-step breakdown
-
%{issue.fixVersions.length}: Refers to the number of fix versions of the current work item.
3. Examples
-
If a work item has no fix versions assigned, the expression returns
0. -
If a work item has two fix versions (e.g., "1.0" and "2.0"), the expression returns
2.
4. Real-life use cases
-
Quality control: Identify work items that are not yet assigned to any fix version.