Skip to content

Add label dropdown to slack incident declare modal

Rajendra Kadam requested to merge 374969-label-dropdown-slack-modal into master

What does this MR do and why?

This MR adds support to assign labels to an incident when creating using the slack slash command.

Adds support to search among project labels for a selected project.

Labels can be searched using keywords in the dropdown, and suggestions appear as per the matching of the search term. (Check the video for more details)

Screenshots or screen recordings

add_labels_from_modal

How to set up and validate locally

  1. Follow the steps mentioned in https://gitlab.com/gitlab-org/manage/integrations/team/-/blob/main/integrations/slack.md to setup slack dev env.
  2. Open the incident modal using /dev-gitlab incident declare
  3. Check the label input box, search for a label, make sure the search term matches to an existing label, if not, nothing will appear in the suggestions.
  4. Select multiple labels.
  5. Submit the modal and see the incident that was created. It should be assigned those selected labels.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #374969 (closed)

Edited by Rajendra Kadam

Merge request reports