# Adding tags to a rule

Most rules have some tags out of the box. Issues inherit the tags of the rules that raised them. With the Administer Quality Profiles permission, you can add tags to the rules. You have the option to apply your own custom tags to rules or use the tags that are built-in to SonarQube.

{% hint style="info" %}
End users can manage the tags assigned to issues within their project. They can add tags using either built-in rule tags or their own custom tags, and they can remove inherited tags.
{% endhint %}

To add a tag to a rule:

1. In SonarQube, go to **Rules** and retrieve the rule you want to tag.
2. In the **Tags** section of the rule, select the plus sign. The **Edit Tags** dialog opens.

<figure><img src="/files/lA3awhVjWqCwiQxImeh2" alt="Assigning a tag to the rule"><figcaption></figcaption></figure>

3. In the search field, enter the name of the tag to be added. The list of existing tags is filtered. If the tag doesn't exist, its name is displayed in the search results with a plus sign as illustrated below.
4. In the search results, select the tag you want to add. The tag is created (if it did not exist) and added to the rule.

## Related pages <a href="#built-in-rule-tags" id="built-in-rule-tags"></a>

* [Built-in rule tags](/sonarqube-server/2026.2/quality-standards-administration/managing-rules/built-in-rule-tags.md)
* [Editing issues](/sonarqube-server/2026.2/user-guide/issues/managing.md#tagging)


---

# 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/2026.2/quality-standards-administration/managing-rules/adding-tags-to-rule.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.
