Slack slash commands

note
This feature is only configurable on self-managed GitLab instances. For GitLab.com, use the GitLab for Slack app instead.

You can use slash commands to run common GitLab operations, like creating an issue, from a Slack chat environment. To run slash commands in Slack, you must configure both Slack and GitLab.

GitLab can also send events (such as issue created) to Slack as part of Slack notifications.

For a list of available slash commands, see Slash commands.

Configure the integration

Slack slash commands are scoped to a project. To configure Slack slash commands:

  1. On the left sidebar, select Search or go to and find your project.
  2. Select Settings > Integrations.
  3. Select Slack slash commands and leave this browser tab open.
  4. In a new browser tab, sign in to Slack and add a new slash command.
  5. Enter a slash command trigger name. You could use the project name.
  6. Select Add Slash Command Integration.
  7. In the Slack browser tab:
    1. Complete the fields with information from the GitLab browser tab.
    2. Select Save Integration and copy the Token value.
  8. In the GitLab browser tab:
    1. Paste the token and ensure the Active checkbox is selected.
    2. Select Save changes.

You can now run slash commands in Slack.