Skip to main content
Skip table of contents

Installation & Configuration

This guide explains how to install and configure GitLab for Confluence Cloud.

The configuration process requires both:

  • A Confluence administrator

  • A GitLab Personal Access Token (PAT)

The integration supports both GitLab SaaS and GitLab On-Premises deployments.


Prerequisites

Before configuring the app, ensure that:

  • You have Confluence administrator permissions

  • You have access to a GitLab account

  • The GitLab account can access the required repositories

  • You can create a GitLab Personal Access Token (PAT)

For GitLab On-Premises deployments:

  • Your GitLab instance must be accessible from the public internet

  • HTTPS is strongly recommended


Install the App

Install GitLab for Confluence Cloud from the Atlassian Marketplace. A free trial is available.

Once installed, the app becomes available within your Confluence instance.


Generate a GitLab Personal Access Token

The integration requires a GitLab Personal Access Token (PAT) to retrieve GitLab data securely.

Step 1: Open GitLab Preferences

In GitLab:

  1. Click your profile avatar

  2. Select Preferences

image-20260526-021948.png

Step 2: Navigate to Access Tokens

In the left navigation menu:

  1. Under Access, select Personal access tokens

image-20260526-022144.png
  1. Under Generate token, select Legacy token

image-20260526-022931.png

Step 3: Create the Token

Configure the following:

Token Name

Choose a descriptive name such as:

Gitlab for Confluence

Expiration Date

Select an expiration date that matches your organization's security requirements.

Scopes

The following scope is required:

  • read_api

image-20260526-023353.png

Step 4: Copy the Token

After generating the token:

  1. Copy the Personal Access Token immediately

  2. Store it securely

Important:
GitLab only displays the token once.

image-20260526-023538.png

Configure GitLab in Confluence

In Confluence:

  1. Navigate to the Confluence administration by clicking the cogwheel next to the avatar

  2. From the left-hand menu, expand Apps and select GitLab

    image-20260526-024459.png
  3. Enter:

    • The Personal Access Token

    • The GitLab Base URL

  4. Save the configuration

image-20260526-024755.png

GitLab Base URL

Use the appropriate base URL for your deployment type.

GitLab SaaS

Use:

https://gitlab.com

GitLab On-Premises

Use your publicly accessible GitLab URL, for example:

https://gitlab.example.com

The URL must be accessible from the internet so the integration can retrieve GitLab metadata.


Updating the Configuration

For security reasons:

  • The Personal Access Token and Base URL must be updated together

  • They cannot be changed independently

If your token expires, generate a new token and reconfigure both values.


Verify the Configuration

After saving the configuration:

  1. Open a Confluence page

  2. Insert a supported GitLab link

  3. Confirm that the macro renders correctly

Supported links include:

  • Projects

  • Merge requests

  • Issues/work items

  • Pipelines

  • Source Code


Security Recommendations

We recommend:

  • Using a dedicated service account where possible

  • Limiting token permissions to the minimum required scopes

  • Rotating tokens regularly

  • Avoiding personal administrator accounts for production integrations


Troubleshooting

Common setup issues include:

Issue

Possible Cause

No valid token

Token expired or invalid

Permission denied

Missing read_api scope

Content not loading

Incorrect base URL

On-Premises connection issues

GitLab instance not publicly accessible

See the Troubleshooting guide for additional details.


Next Steps

After completing the installation:


Updated:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.