Skip to main content
Table of Contents

Change Failure Rate (CFR): Definition and Calculation

Learn how LinearB defines and calculates Change Failure Rate, including how incidents are mapped to deployments and what data is required for accurate CFR reporting.

Steven Silverstone
Updated by Steven Silverstone
Table of Contents

Change Failure Rate (CFR) measures the percentage of deployments that result in a failure in production. LinearB calculates CFR based on the number of production incidents divided by the number of deployments over the same period.

You can view CFR in the Metrics area under DORA Metrics.


Summary
  • CFR represents the percentage of deployments that cause production failures.
  • Failures are identified using incidents from your project management tool.
  • You can customize what qualifies as a production incident.
  • By default, every issue that matches your incident rules counts, whether or not it is in an iteration.
  • CFR can be viewed at the organization or team level.

How CFR is calculated

LinearB calculates CFR using the following formula:

  • Numerator: Number of production incidents
  • Denominator: Number of deployments

Production incidents are derived from issues in your connected project management system based on your configured incident rules.


Customizing CFR using project management boards

By default, LinearB treats bugs with the highest priority as production incidents. You can customize this logic under:

Company Settings → Project Management → Incidents

You can define which issues count as production incidents using:

  • Issue types
  • Labels
  • Specific field values

To configure this logic, open the CFR Rule Builder and add conditions that represent critical production failures.


Customizing the CFR start time

By default, a production incident is counted at the first time it moves to In Progress or Done after its last To Do status:

  • An issue created directly in an In Progress status counts from the day it was created.
  • An issue that moves from To Do straight to Done counts from the day it moved to Done.
  • An issue that is reopened (moved back to To Do) counts from the next time work on it starts.

You can override this behavior by selecting a custom field from your project management issue using the Incident Validation dropdown. The selected field must contain a date and time (timestamp).

Important: The selected custom field must contain a timestamp (date and time). Date-only custom fields cannot be used to define the CFR start time.
When you update CFR configuration, LinearB recalculates the metric. New incidents and configuration changes may take up to 24 hours to appear.

Choosing which incidents count (Incident scope)

The Incident scope setting controls which project management incidents are used to calculate CFR and MTTR. You can find it under Company Settings → Advanced.

  • All incidents (default): Every issue that matches your CFR and MTTR rules counts, whether or not it is in an iteration.
  • Only incidents in iterations: An issue counts only if it matches your CFR and MTTR rules and is linked to an iteration in LinearB.

The setting applies to all CFR and MTTR metrics across LinearB, including AI Analytics and the DORA dashboard. Incidents reported through the Incident API are not affected by this setting.


Using the Incident API

LinearB’s Incident API allows you to report production failures from any external system, even if it is not a native project management integration.

This is useful if incidents are tracked in custom tools or external platforms.


Repository filtering behavior

When CFR incidents are derived from project management issues (for example, Jira-based incidents), repository filtering is not supported.

Project management issues do not contain repository-level context. As a result, applying repository filters may return no data, even if qualifying incidents exist.

Repository filtering is supported when incidents are reported via the LinearB Incident API, which includes repository attribution.

If CFR appears blank after applying repository filters, verify whether incidents are sourced from project management issues rather than the Incident API.

Viewing CFR by team

CFR can also be calculated at the team level. An incident counts for a team when it matches the team's incident rules and comes from one of the project management boards connected to the team. Teams that define their own incident rules in Team Settings use those rules instead of the company rules. Incidents roll up from teams to their parent groups.

To ensure incidents are attributed correctly, verify that each team is associated with the correct project management boards:

Team Settings → Projects

Incidents that are not connected to any team (for example, issues from boards that no team uses) are counted at the organization level and appear when you select All Teams.

How did we do?

CFR (Change Failure Rate) Metric

How LinearB Detects Releases for DORA Metrics