• Products
  • Get started
  • Documentation
  • Resources

Integrate with GitLab

The feature described in this article is currently rolling out to some Jira Service Management Cloud customers. It may not yet be visible or available on your site.

Gitlab Logo

What does the integration offer?

Jira Service Management offers an integration with GitLab where pushes, merge requests, and issues in GitLab create alerts in Jira Service Management. Jira Service Management determines the right people to notify based on on-call schedules– notifies via email, text messages (SMS), phone calls, iOS & Android push notifications, and escalates alerts until the alert is acknowledged or closed.

How does the integration work?

  • When a push is made to your project in GitLab, it creates an alert in Jira Service Management.

  • When a merge request is created in your project in GitLab, it creates an alert in Jira Service Management.

  • When a merge request is updated in your project in GitLab, it adds a note to the alert in Jira Service Management.

  • When a merge request is closed in your project in GitLab, it closes the alert in Jira Service Management.

  • When an issue is created in your project in GitLab, it creates an alert in Jira Service Management.

  • When an issue is closed in your project in GitLab, it closes the alert in Jira Service Management.

  • When an issue is updated in your project in GitLab, it adds a note to the alert in Jira Service Management.

Set up the integration

GitLab is an API-based integration. Setting it up involves the following steps:

  • Add a GitLab integration in Jira Service Management

  • Configure the integration in GitLab

Add a GitLab integration

If you're using the Free or Standard plan in Jira Service Management, you can only add this integration from your team’s operations page. To access the feature through Settings (gear icon) > Products (under JIRA SETTINGS) > OPERATIONS, you need to be on Premium or Enterprise plan.

Adding an integration from your team’s operations page makes your team the owner of the integration. This means Jira Service Management only assigns the alerts received through this integration to your team.

To add a GitLab integration in Jira Service Management, complete the following steps:

  1. Go to your team’s operations page.

  2. On the left navigation panel, select Integrations and then Add integration.

  3. Run a search and select “Gitlab”.

  4. On the next screen, enter a name for the integration.

  5. Optional: Select a team in Assignee team if you want a specific team to receive alerts from the integration.

  6. Select Continue.
    The integration is saved at this point.

  7. Expand the Steps to configure the integration section and copy the webhook URL.
    You will use this URL while configuring the integration in Gitlab later.

  8. Select Turn on integration.
    The rules you create for the integration will work only if you turn on the integration.

Configure the integration in GitLab

To configure the integration in GitLab, complete the following steps:

  1. In your GitLab project, open the Settings tab.

  2. Select Webhooks from the left pane.

  3. Paste the webhook URL you previously copied from Jira Service Management into URL.

  4. Select Push, Tag Push, Issues Events, Confidential Issues Events, and Merge Request Events from the list.

  5. Select Add webhook.

Additional Help