# How to access the rule name in alert templates?

**URL:** <https://community.grafana.com/t/how-to-access-the-rule-name-in-alert-templates/71518>\
**Category:** Alerting\
**Tags:** templating, alert-templating, alerting\
**Created:** [August 31, 2022, 10:37am UTC](https://community.grafana.com/t/how-to-access-the-rule-name-in-alert-templates/71518 "2022-08-31T10:37:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lanwin](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/lanwin/32/25435_2.png) [@lanwin](https://community.grafana.com/u/lanwin)\
**Post date:** [August 31, 2022, 10:37am UTC](https://community.grafana.com/t/how-to-access-the-rule-name-in-alert-templates/71518/1 "2022-08-31T10:37:02Z")

</div>

Question in title. I want to have the rule name in my notification title without repeating myself (copying the title to an label)

---

<div class="post-metadata">

**Author:** ![usman.ahmad](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/usman.ahmad/32/29706_2.png) [@usman.ahmad](https://community.grafana.com/u/usman.ahmad)\
**Post date:** [August 31, 2022, 11:02am UTC](https://community.grafana.com/t/how-to-access-the-rule-name-in-alert-templates/71518/2 "2022-08-31T11:02:44Z")

</div>

Hi @lanwin,

We have 2 great articles which describe the alerting and templating.

The 1st one is written by a community user on this [post](https://community.grafana.com/t/how-to-modify-grafana-alert-template/70620)

The second one is written by one of our team member in the following [post](https://community.grafana.com/t/how-to-use-alert-message-templates-in-grafana/67537/3) which is still a very active post to this date.

I hope this helps.
