Skip to content

Commit 134013d

Browse files
committed
fix(slack): Add "Description" title to custom_body field in Slack payload
1 parent de7dcd6 commit 134013d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redash/destinations/slack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def notify(self, alert, query, user, new_state, app, host, metadata, options):
3333
text = alert.custom_subject
3434
else:
3535
text = alert.name + (" just triggered" if new_state == "triggered" else " went back to normal")
36-
payload = {"attachments": [{"text": text, "color": color, "fields": [{"value": alert.custom_body}]}]}
36+
payload = {"attachments": [{"text": text, "color": color, "fields": [{"title": "Description", "value": alert.custom_body}]}]}
3737
else:
3838
fields = [
3939
{

0 commit comments

Comments
 (0)