
Requirements
- A GitLab project with the GitLab for Slack app installed and configured
- Enabled slash commands in Slack (Mattermost uses different commands)
Available Slash Commands
Use the/gitlab help command to list all supported GitLab ChatOps slash commands in your workspace.


| Slash Command | Description | Example |
|---|---|---|
/gitlab [alias] issue show <id> | Display issue details | /gitlab demo-group/solar-system issue show 42 |
/gitlab [alias] issue new <title> <description> | Create a new issue | /gitlab demo-group/solar-system issue new "Bug" "Steps" |
/gitlab [alias] issue close <id> | Close an issue | /gitlab demo-group/solar-system issue close 42 |
/gitlab [alias] run <job-name> [--branch=<branch>] | Trigger a CI job | /gitlab demo-group/solar-system run test-suite |
/gitlab [alias] deploy <env> to <target-env> | Deploy environment | /gitlab demo-group/solar-system deploy staging to prod |
List Commands in Slack
In your GitLab notification channel (e.g.,#gitlab-notifications), type:

Creating an Issue via ChatOps
You can quickly create issues directly in Slack:- Identify your project alias (group/project) set up during Slack integration.
-
Run the new-issue command:



Running CI Jobs via ChatOps
Assuming your.gitlab-ci.yml defines a unit_testing job:
If escaping special characters in branch names fails, you may temporarily change your project’s default branch in GitLab.
- Go to Settings > Repository > Default branch
- Select your feature branch and save


--branch: