> 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/2025.2/quality-standards-administration/managing-quality-gates/viewing-quality-gate.md).

# Viewing a quality gate

Any user can view the quality gates and their conditions defined in a SonarQube Server 2025.2 instance.

Any user, even an ananymous user, can view the quality gates defined in a SonarQube Server instance. For information about quality gates, see [Introduction to quality gates](/sonarqube-server/2025.2/quality-standards-administration/managing-quality-gates/introduction-to-quality-gates.md).

To view the definition of a quality gate:

1. In the top menu bar, select **Quality Gates**.
2. In the left panel, select the quality gate you want to view. Its definition is displayed in the right panel. For information about the metrics used in the conditions, see [Understanding measures and metrics](/sonarqube-server/2025.2/user-guide/code-metrics/metrics-definition.md). Note that conditions may apply only to [Quality standards and new code](/sonarqube-server/2025.2/user-guide/about-new-code.md).
3. To view the projects explicitly associated with this quality gate, navitage down to **Projects** in the right panel (Note that projects cannot be explicitly associated with the default quality gate). The **With** tab lists the associated projects. The **Without** tab lists the projects not associated with this quality gate. The **All** tab shows all projects.

The figure below shows the **Quality Gates** page:

1. The list of quality gates in your instance. Icons are used to indicate if a quality gate is configured for improving code quality and/or AI Code Assurance.
2. The definition of the selected quality gate.
3. The projects associated with the selected project.

<div align="left"><figure><img src="https://3577027091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F69lEOGGgOhCpumODGD9v%2Fuploads%2Fgit-blob-6c305907ebdd37682df9408808d9dc397ab84db6%2Ffa7a9c1d0d6104e7d77679a93118060fbe7f2c9f.png?alt=media" alt="Select a quality gate, define its conditions on new and overall code, then assign to projects."><figcaption></figcaption></figure></div>

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

* [Introduction to quality gates](/sonarqube-server/2025.2/quality-standards-administration/managing-quality-gates/introduction-to-quality-gates.md)
* [Managing custom quality gates](/sonarqube-server/2025.2/quality-standards-administration/managing-quality-gates/managing-custom-quality-gates.md)
* [Changing default quality gate](/sonarqube-server/2025.2/quality-standards-administration/managing-quality-gates/changing-default-quality-gate.md)
* [Associating projects with quality gate](/sonarqube-server/2025.2/quality-standards-administration/managing-quality-gates/associating-projects-with-quality-gate.md)
* [Subscribing to notifications](/sonarqube-server/2025.2/user-guide/managing-your-account/subscribing-to-notifications.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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
