> For the complete documentation index, see [llms.txt](https://docs.sonarsource.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sonarsource.com/sonarqube-server/2026.4/quality-standards-administration/managing-quality-gates/quality-gate-history.md).

# Quality gate history

A quality gate only protects your codebase when teams respect it during development and release workflows. This feature adds visibility into releases that happened while the quality gate was failing, so you can spot risky practices and improve your delivery process.

This feature is available only for projects that use the [Quality standards and new code](/sonarqube-server/2026.4/user-guide/about-new-code.md#previous-version) new code definition.

## What this feature shows <a href="#what-this-feature-shows" id="what-this-feature-shows"></a>

The feature focuses on the main branch only. It provides a project-level view of quality gate history across released versions, including:

1. Period filters for **30 days**, **6 months**, **1 year**, and **All time**.
2. A summary of safe versus risky releases.
3. Whether each release was safe or risky at release time.
4. A timeline of released versions.

A release is considered risky when the quality gate was failing at the time the version was released.

## How the quality gate history works <a href="#how-the-quality-gate-history-works" id="how-the-quality-gate-history-works"></a>

This view helps engineering managers and DevOps leads identify when code is being promoted despite failing the quality gate. Repeated risky releases can indicate that guardrails are configured but not enforced in practice.

If you see risky releases, review your delivery workflow and CI configuration. You can configure your CI tool to [Not integrated CI tools](/sonarqube-server/2026.4/analyzing-source-code/ci-integration/not-integrated-tools.md#quality-gate-fails), which helps prevent risky releases from being promoted.

## Related pages <a href="#related-pages" id="related-pages"></a>

* [Quality standards and new code](/sonarqube-server/2026.4/user-guide/about-new-code.md)
* [Not integrated CI tools](/sonarqube-server/2026.4/analyzing-source-code/ci-integration/not-integrated-tools.md#quality-gate-fails)
* [Understanding quality gates](/sonarqube-server/2026.4/quality-standards-administration/managing-quality-gates/introduction-to-quality-gates.md)
* [Managing quality gates](/sonarqube-server/2026.4/quality-standards-administration/managing-quality-gates.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.sonarsource.com/sonarqube-server/2026.4/quality-standards-administration/managing-quality-gates/quality-gate-history.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
