# Viewing a quality gate

Any user, even an ananymous user, can view the quality gates defined in a SonarQube Server instance. For information about quality gates, see the [introduction-to-quality-gates](https://docs.sonarsource.com/sonarqube-server/2025.3/quality-standards-administration/managing-quality-gates/introduction-to-quality-gates "mention") page.

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 the [metrics-definition](https://docs.sonarsource.com/sonarqube-server/2025.3/user-guide/code-metrics/metrics-definition "mention") page. Note that conditions may apply only to new code; check the [about-new-code](https://docs.sonarsource.com/sonarqube-server/2025.3/user-guide/about-new-code "mention") page for these details.
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://2741114604-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4vN6mMcoPndARxvycboz%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](https://docs.sonarsource.com/sonarqube-server/2025.3/quality-standards-administration/managing-quality-gates/introduction-to-quality-gates "mention")
* [managing-custom-quality-gates](https://docs.sonarsource.com/sonarqube-server/2025.3/quality-standards-administration/managing-quality-gates/managing-custom-quality-gates "mention")
* [changing-default-quality-gate](https://docs.sonarsource.com/sonarqube-server/2025.3/quality-standards-administration/managing-quality-gates/changing-default-quality-gate "mention")
* [associating-projects-with-quality-gate](https://docs.sonarsource.com/sonarqube-server/2025.3/quality-standards-administration/managing-quality-gates/associating-projects-with-quality-gate "mention")
* [subscribing-to-notifications](https://docs.sonarsource.com/sonarqube-server/2025.3/user-guide/managing-your-account/subscribing-to-notifications "mention")
* [changing-quality-gate-and-fudge-factor](https://docs.sonarsource.com/sonarqube-server/2025.3/project-administration/changing-quality-gate-and-fudge-factor "mention")
* Changing the quality gate fudge factor:
  * [quality-standards](https://docs.sonarsource.com/sonarqube-server/2025.3/instance-administration/analysis-functions/quality-standards "mention")
  * [changing-quality-gate-and-fudge-factor](https://docs.sonarsource.com/sonarqube-server/2025.3/project-administration/changing-quality-gate-and-fudge-factor "mention")


---

# Agent Instructions: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
