- Compare integrations
- Authentication in Jira
- Privacy considerations
- Third-party Jira integrations
If your organization uses Jira issues, you can migrate your issues from Jira and work exclusively in GitLab. However, if you’d like to continue to use Jira, you can integrate it with GitLab. GitLab offers two types of Jira integrations, and you can use one or both depending on the capabilities you need. We recommend you enable both.
After you set up one or both of these integrations, you can cross-reference activity in your GitLab project with any of your projects in Jira.
This integration connects one or more GitLab projects to a Jira instance. The Jira instance
can be hosted by you or in Atlassian cloud.
The supported Jira versions are
For an overview, see Agile Management - GitLab-Jira Basic Integration.
To set up the integration, configure the settings in GitLab.
The Jira development panel integration connects all GitLab projects under a group or personal namespace. When configured, relevant GitLab information, including related branches, commits, and merge requests, displays in the development panel.
To set up the Jira development panel integration, use the GitLab.com for Jira Cloud app or the Jira DVCS (distributed version control system) connector, depending on your installation.
|Capability||Jira integration||Jira development panel integration|
|Mention a Jira issue ID in a GitLab commit or merge request, and a link to the Jira issue is created.||Yes.||No.|
|Mention a Jira issue ID in GitLab and the Jira issue shows the GitLab issue or merge request.||Yes. A Jira comment with the GitLab issue or MR title links to GitLab. The first mention is also added to the Jira issue under Web links.||Yes, in the issue’s development panel.|
|Mention a Jira issue ID in a GitLab commit message and the Jira issue shows the commit message.||Yes. The entire commit message is displayed in the Jira issue as a comment and under Web links. Each message links back to the commit in GitLab.||Yes, in the issue’s development panel and optionally with a custom comment on the Jira issue using Jira Smart Commits.|
|Mention a Jira issue ID in a GitLab branch name and the Jira issue shows the branch name.||No.||Yes, in the issue’s development panel.|
|Add Jira time tracking to an issue.||No.||Yes. Time can be specified using Jira Smart Commits.|
|Use a Git commit or merge request to transition or close a Jira issue.||Yes. Only a single transition type, typically configured to close the issue by setting it to Done.||Yes. Transition to any state using Jira Smart Commits.|
|Display a list of Jira issues.||Yes.||No.|
|Create a Jira issue from a vulnerability or finding.||Yes.||No.|
|Create a GitLab branch from a Jira issue.||No.||Yes, in the issue’s development panel.|
The authentication method in Jira depends on whether you host Jira on your own server or on Atlassian cloud:
- Jira Server supports basic authentication. When connecting, a username and password are required. Connecting to Jira Server using the Central Authentication Service (CAS) is not possible. For more information, read how to set up a user in Jira Server.
- Jira on Atlassian cloud supports authentication through an API token. When connecting to Jira on Atlassian cloud, an email and API token are required. For more information, read create an API token for Jira in Atlassian cloud.
If you integrate a private GitLab project with Jira using the Jira integration, actions in GitLab issues and merge requests linked to a Jira issue leak information about the private project to non-administrator Jira users. If your installation uses Jira Cloud, you can use the GitLab.com for Jira Cloud app to avoid this risk.
Developers have built several third-party Jira integrations for GitLab that are listed on the Atlassian Marketplace.
If these features do not work as expected, it is likely due to a problem with the way the integration settings were configured.
If GitLab cannot comment on Jira issues, make sure the Jira user you set up for the integration has permission to:
- Post comments on a Jira issue.
- Transition the Jira issue.
Jira issue references and update comments do not work if the GitLab issue tracker is disabled.
If GitLab cannot close a Jira issue:
Make sure the
Transition IDyou set in the Jira settings matches the one your project needs to close an issue.
Make sure the Jira issue is not already marked as resolved:
- Check the Jira issue resolution field is not set.
- Check the issue is not struck through in Jira lists.
CAPTCHA may be triggered after several consecutive failed login attempts,
which may lead to a
401 unauthorized error when testing your Jira integration.
If CAPTCHA has been triggered, you can’t use Jira’s REST API to
authenticate with the Jira site.
To fix this error, sign in to your Jira instance and complete the CAPTCHA.