From 54aa8cf8572962c4ae51b85f4d659d65f615963a Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Tue, 4 Mar 2025 21:52:45 +0000 Subject: [PATCH] feat: add actions for changing incident state in Slack integration --- Common/Server/Utils/Workspace/Slack/Actions/Incident.ts | 8 ++++++++ Common/Server/Utils/Workspace/Slack/app-manifest.json | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Common/Server/Utils/Workspace/Slack/Actions/Incident.ts b/Common/Server/Utils/Workspace/Slack/Actions/Incident.ts index 78ecdc7581..0f51dcec18 100644 --- a/Common/Server/Utils/Workspace/Slack/Actions/Incident.ts +++ b/Common/Server/Utils/Workspace/Slack/Actions/Incident.ts @@ -715,6 +715,14 @@ export default class SlackIncidentActions { return await this.executeOnCallPolicy(data); } + if(actionType === SlackActionType.ViewChangeIncidentState) { + return await this.viewChangeIncidentState(data); + } + + if(actionType === SlackActionType.SubmitChangeIncidentState) { + return await this.submitChangeIncidentState(data); + } + if (actionType === SlackActionType.ViewIncident) { // do nothing. This is just a view incident action. // clear response. diff --git a/Common/Server/Utils/Workspace/Slack/app-manifest.json b/Common/Server/Utils/Workspace/Slack/app-manifest.json index 6c32b5c2fa..b2ab945c07 100644 --- a/Common/Server/Utils/Workspace/Slack/app-manifest.json +++ b/Common/Server/Utils/Workspace/Slack/app-manifest.json @@ -55,7 +55,8 @@ "channels:read", "channels:write.invites", "channels:write.topic", - "chat:write" + "chat:write", + "users:read" ] } },