Completion percentage by status
Return the completion percentage of a work item based on the status it is in.
Configuration
Create a Custom smart number field and use the General parsing mode.
Expression
%{%{issue.status} = "Open" ? 0 :
( %{issue.status} = "Planning" ? 15 :
( %{issue.status} = "In Progress" ? 60 :
( %{issue.status} = "In Review" ? 70 :
( %{issue.status} = "Implementing" ? 85 : 100 ))))}
Please, replace the status names as well as the completion percentages with the ones of your choice. Any status not included in the sequence will return 1.
Format
Custom format
Pattern
###.##%