diff --git a/src/dispatch/plugins/dispatch_slack/case/messages.py b/src/dispatch/plugins/dispatch_slack/case/messages.py index 554b0f717068..e800d04578d4 100644 --- a/src/dispatch/plugins/dispatch_slack/case/messages.py +++ b/src/dispatch/plugins/dispatch_slack/case/messages.py @@ -257,6 +257,13 @@ def create_action_buttons_message( project_id=project_id, channel_id=channel_id, ).json() + mfa_button_metadata = SubjectMetadata( + type=CaseSubjects.case, + organization_slug=organization_slug, + id=case.id, + project_id=project_id, + channel_id=channel_id, + ).json() # we create the response plan and the snooze buttons elements = [] @@ -280,7 +287,7 @@ def create_action_buttons_message( Button( text="👤 User MFA Challenge", action_id=CaseNotificationActions.user_mfa, - value=button_metadata, + value=mfa_button_metadata, ), ] )