From bbd3a8490af04aa037b7a8395b86c4d8d39e3549 Mon Sep 17 00:00:00 2001 From: Marc Vilanova Date: Wed, 2 Oct 2024 16:52:37 -0700 Subject: [PATCH] Improves messaging in case threaded alert message --- src/dispatch/plugins/dispatch_slack/case/messages.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dispatch/plugins/dispatch_slack/case/messages.py b/src/dispatch/plugins/dispatch_slack/case/messages.py index 5aa23d11a09f..275cb28e6595 100644 --- a/src/dispatch/plugins/dispatch_slack/case/messages.py +++ b/src/dispatch/plugins/dispatch_slack/case/messages.py @@ -245,7 +245,9 @@ def create_signal_messages(case_id: int, channel_id: str, db_session: Session) - Actions(elements=elements), Divider(), Section(text="*Alerts*"), - Section(text=f"We observed {instances.count()} alerts in this case."), + Section( + text=f"We observed <{DISPATCH_UI_URL}/{organization_slug}/cases/{first_instance_signal.case.name}/signal/{first_instance_signal.id}|{instances.count()} alerts> in this case. The first alert for this case can be seen below." + ), ] return Message(blocks=signal_metadata_blocks).build()["blocks"]