Phase 1: Add `/gitlab incident comment <text>` Slack slash command
Problem to solve
While collaborating on incidents in Slack, decisions might be made that need to be transferred to the corresponding incident in GitLab. It should be easy to transfer comments in Slack to GitLab.
Proposal
Introduce a slash command for adding a comment, from Slack, to a GitLab incident.
The slash command is: /gitlab incident comment <text>
.
- To start, this command would always send a message asking people to confirm which incident they want to send the comment to.
- The message lists the 5 most recently created incidents from the available projects (or however many), with a button to post the comment to any of them.
- Selecting a button will post the comment, then replace the message in slack with a confirmation message (or error message in case of failure)
- We link to the
Incidents
pages for the available projects, in case the incident they're looking for isn't present (ex - clicking one of the options in the...
menu below would open GitLab in the browser). They can manually add their comment to the incident that way, if needed. We can improve this workflow, if/as needed, in a subsequent iteration.
Example of the slash command, in Slack | Notification shown to user who entered the slash command | Confirmation message |
---|---|---|
Edited by Amelia Bauerly