# 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 [Understanding quality gates](/sonarqube-server/quality-standards-administration/managing-quality-gates/introduction-to-quality-gates.md) 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 [Understanding measures and metrics](/sonarqube-server/user-guide/code-metrics/metrics-definition.md) page. Note that conditions may apply only to new code; check the [Quality standards and new code](/sonarqube-server/user-guide/about-new-code.md) 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 using recommend settings for new code 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="/files/1CrZkpzlA6IZ5HoLHklF" alt="The quality gate page"><figcaption></figcaption></figure></div>

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

* [Understanding quality gates](/sonarqube-server/quality-standards-administration/managing-quality-gates/introduction-to-quality-gates.md)
* [Managing custom quality gates](/sonarqube-server/quality-standards-administration/managing-quality-gates/managing-custom-quality-gates.md)
* [Changing instance's default quality gate](/sonarqube-server/quality-standards-administration/managing-quality-gates/changing-default-quality-gate.md)
* [Associating a quality gate with projects](/sonarqube-server/quality-standards-administration/managing-quality-gates/associating-projects-with-quality-gate.md)
* [Notifications](/sonarqube-server/user-guide/managing-your-account/subscribing-to-notifications.md)
* [Managing your project's quality gate](/sonarqube-server/project-administration/adjusting-analysis/changing-quality-gate-and-fudge-factor.md)
* Changing the quality gate fudge factor:
  * [Quality standards](/sonarqube-server/instance-administration/analysis-functions/quality-standards.md)
  * [Managing your project's quality gate](/sonarqube-server/project-administration/adjusting-analysis/changing-quality-gate-and-fudge-factor.md)


---

# 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/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.
