Jira DVCS connector
Use the Jira DVCS (distributed version control system) connector if you self-host your Jira instance with Jira Data Center or Jira Server and want to use the Jira development panel.
If you’re on Jira Cloud, migrate to the GitLab for Jira Cloud app. For more information, see Install the GitLab for Jira Cloud app.
Configure the Jira DVCS connector
Prerequisites
- Your GitLab instance must be accessible by Jira.
- You must have at least the Maintainer role for the GitLab group.
- Your network must allow inbound and outbound connections between GitLab and Jira.
Create a GitLab application for DVCS
- For projects in a single group, you should create a group application.
- For projects across multiple groups, you should create a separate GitLab user account for Jira integration work only. This account ensures regular maintenance does not affect your integration.
- If you cannot create a group application or separate user account, you can create instead:
To create a GitLab application for DVCS:
- Go to the appropriate Applications section.
- In the Name text box, enter a descriptive name for the integration (for example,
Jira
). - In the Redirect URI text box, enter the generated Redirect URL from linking GitLab accounts.
- In Scopes, select
api
and clear any other checkboxes. The Jira DVCS connector requires a write-enabledapi
scope to automatically create and manage required webhooks. - Select Submit.
- Copy the Application ID and Secret values. You need these values to configure Jira.
Configure Jira for DVCS
To configure Jira for DVCS:
- On the top bar, in the upper-right corner, select Administration () > Applications.
- On the left sidebar, select DVCS accounts.
- From the Host dropdown list, select GitLab or GitLab Self-Managed.
- For Team or User Account, enter the relative path of a top-level GitLab group the GitLab user can access.
- For Host URL, enter the domain of your GitLab instance.
- From the Client Configuration dropdown list, select the application link you’ve created.
- Optional. Select or clear the Auto Link New Repositories and Enable Smart Commits checkboxes.
- Select Add, then Continue.
Jira redirects to GitLab where you have to confirm the authorization. GitLab then redirects back to Jira where the synced projects are displayed in the new account. The initial sync takes a few minutes. After the initial sync, it can take up to 60 minutes to refresh.
To connect additional GitLab projects from other GitLab top-level groups or personal namespaces, repeat the previous steps with additional Jira DVCS accounts.
Refresh data imported to Jira
Jira imports commits and branches for GitLab projects every 60 minutes. To refresh the data manually in Jira:
- Sign in to your Jira instance as the user you configured the integration with.
- On the top bar, in the upper-right corner, select Administration () > Applications.
- On the left sidebar, select DVCS accounts.
- To refresh one or more repositories in a DVCS account:
- For all repositories, next to the account, select the ellipsis () > Refresh repositories.
-
For a single repository:
- Select the account.
- Hover over the repository you want to refresh, and in the Last activity column, select Click to sync repository ().