Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
The Defect Injection Rate KPI

Overview

Applicability

Scrum-based projects

Definition (Hover Text)

measures Measures the total number of defects (bugs) linked to closed user stories which are part of a Iterationsprint.

Source Tools

Jira, Azure Boards

Graph type

Line chart

Filters

<None>

Hover Format on KPI

Sprint Name: <<Percentage Value>>

Defects: <<Value>>

Closed Stories: <<Value>>

Fields on Explore Overlay

  1. Sprint Name

  2. Story ID

  3. Issue Description

  4. Linked Defects

Business Logic

Calculation Formula

No. of defects tagged to all stories closed in an iteration/ Total no. of stories closed in the iteration.
*Please note:- ‘stories’ denote units of work, not to be confused with ‘User Story’ issue type in Jira

KPI Settings

  1. Issue types to identify as Stories:

    1. Primary → ‘Issue types which will have linked defects’

    2. Secondary → 'Labels to identify issues to be included' can be used to filter the desired set of stories considered in primary setting

      image-20240703-143936.pngImage Addedimage-20240703-144037.pngImage Added

  2. Defects field mappings

    1. Priority to be excluded

    2. Root cause values to be included

  3. Workflow Status field mappings

    1. Resolution type to be excluded

    2. Status to be excluded

    3. Default start status for defects

    4. Statuses for issue closure (for both stories and defects)

*Please note:- Global mappings and default Jira statuses of sprint reports will apply if the KPI level settings are not used.

Trend

Positive trend indication - DecreaseA downward trend is desirable

Maturity Levels

M1: > 175%

M2: 175% -125%

M3: 125%-75%

M4: 75-25%

M5: 25%


*Please note:- KPI widget denotes the average maturity over data points

Instance level thresholds

Set the desired defect injection rate threshold

Configurations

Processor Fields

  • NA

Mandatory fields

  • Issue Type Mapping

    • Issue Type which will have Liked defects eg; Story Enabler Story, Tech Story

  • WorkFlow Status Mapping

    • Status considered for Issue closure eg; Closed, Done, Ready for Delivery

How to Validate KPI

Suggested ways of working

  1. The issues identified as stories and defects should belong to the sprints of the configured project scrum board

  2. Ensure proper linking of defects with the main user stories since unlinked defects will not be considered

  3. Verify the sprint snapshots of closed sprints

Sample JQLs

project in ("XYZ") and component ="ABC" and type in (Defect) and issueFunction in linkedIssuesOf("type in (Story) AND sprint in(406)")

Best Practices

Automate Testing

Implement automated testing (unit, integration, and end-to-end tests) to catch defects early in the development process.

Pair Programming

Implement pair programming to increase code quality and reduce the likelihood of defects being introduced.

Adopt TDD/BDD

Use Test-Driven Development (TDD) or Behavior-Driven Development (BDD) methodologies to write tests before code, ensuring that functionality is well-defined and tested from the start.

Use Static Analysis Tools

Implement static code analysis tools to automatically check code for potential defects and enforce coding standards.

Benefits of KPI

How does the KPI help

Quality Measurement

It helps in identifying measuring the number of defects introduced during the development process, which quality of the code being produced and identifying areas where improvements are needed.

Predictability

Understanding the defect injection rate can help in improving forecasting the quality amount of the product and reducing the cost of fixing defects in later stages. It also helps in tracking the effectiveness of the testing process and identifying areas for improvement.

...

rework required and in planning more accurately.

Cost Reduction

Reducing the defect injection rate can lead to lower costs associated with fixing bugs, especially those found later in the development cycle or after release.

Process Improvement

By tracking this metric, teams can identify stages in the development process where defects are commonly introduced and take steps to improve those stages.