What is CFR?
CFR - Change Failure Rate
CFR is a metric that represents the percentage of deployments causing a failure in production. LinearB calculates this metric based on the number of "production incidents" defined in your project management tool divided by the number of deployments.
You can view CFR in your Metrics page under DORA Metrics.

How to Customize your CFR Calculation
Project Management Boards
By default, LinearB includes bugs with priority highest as production incidents in this metric. LinearB customers have the option to define what is a production bug under Company settings -> Projects -> CFR. You can filter the relevant issues to be included in your CFR calculation by issue type, labels, and custom field values.

When updating the configuration, LinearB re-runs the calculation for the CFR Metric. See the image below. It can take up to 2 hours for changes to take effect.

Incident API
LinearB's Incident API can be used to report change failure instances from any project management platform. Learn more about utilizing LinearB's Incident API here:
Viewing CFR by Team
LinearB can also calculate team-based CFR. The calculation is based on the conditions set in the org settings (i.e Issue Type, Label, Field) and also filters the results based on the team board configured in team settings.

To ensure the correct incidents are mapped to your teams, go to Team Settings -> Projects and verify that your team is associated with the correct project management boards.
