---
url: /howto/connecting-to-issue-trackers/gitlab.md
description: This article describes how you can import issues from GitLab
---

# How to Connect to GitLab Issues

Teamscale imports issues from the GitLab Issue Tracker via the GitLab REST API.
The guide for importing **code** from GitLab can be found [here](../../connecting-version-control-system/gitlab/index.md).

:::tip General Option Reference
This guide only covers the options specific to the GitLab issue tracker.
A general overview of connector options is [available here](../../../reference/connector-options/#issue-tracker-connector-options).
:::

## Prerequisites for the GitLab integration

Prerequisites for the configuration are:

* A Teamscale installation that can reach the GitLab instance you want to connect to.
* A GitLab Access Token with the `read_api` scope that can access the GitLab project.

## Setup of the GitLab Connector

1. In Teamscale, go *Project Configuration* > *Projects* and edit or [create a project](../../creating-a-project/).
   In the *Connector Configuration* section, click `+` and choose *Issue Tracker* > *GitLab Issues*.

   ![Screenshot of the selected GitLab Issue Tracker](gitlab-issue-tracker.png)

2. Fill out the following fields in the connector settings:

   * `Project`: The **global** (numeric) project ID, or the complete path (\<namespace>/\<projectPath>) of the GitLab project.
   * `Labels`: Comma-separated list of labels. Only issues with any of these labels are imported. Leave empty to import all issues.
   * `Account`: Choose an existing account, or create one using the GitLab root URL (e.g. `https://gitlab.com`) and the previously created access token.

3. Click `Save project` and wait for the finished reanalysis.

4. The issues can be found under *Activity* > *Issues*.
