Grafana - alertname in the title

Ho to get alertname in the title? I don’t need labels\groups\annotations\receivers or anything else. Just alertname with its value
So the code is:

{{ define "slack.title" }}{{ template "__alert_name" . }}{{ end }}```

Don’t work too:

{{ define "slack.title" }}{{ template "__alert_name" . }}{{ end }}```

This configuration works. hope alertname will always be on the 0 position


{{ define "slack.title" }}{{ if gt (len .Alerts.Firing) 0 }}
{{ template "__alert_title_map" .Alerts.Firing }}{{ if gt (len .Alerts.Resolved) 0 }}
{{ end }}{{ end }}{{ end }}```