Back to Gitlabhq

Slack slash commands (deprecated)

doc/user/project/integrations/slack_slash_commands.md

18.11.22.0 KB
Original Source
<!--- start_remove The following content will be removed on remove_date: '2026-08-15' -->

{{< details >}}

  • Tier: Free, Premium, Ultimate
  • Offering: GitLab Self-Managed, GitLab Dedicated

{{< /details >}}

[!warning] This feature was deprecated in GitLab 18.7 and is planned for removal in 19.0. Use GitLab for Slack app instead.

This change is a breaking change.

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.

[!note] This feature is only configurable on GitLab Self-Managed. For GitLab.com, use the GitLab for Slack app instead.

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. In the top bar, 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 trigger name for the slash command. 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.

<!--- end_remove -->