By moving to the cloud engineering teams can accelerate innovation and scale resources across an organization. The ease of access and reduced infrastructure costs that comes with moving to the cloud is a direct result of using a platform that easily integrates your data and keeps it secure yet accessible. Gitlab.com, the cloud (SAAS) platform for GitLab, modernizes data platforms to leverage new applications and advances end-to-end software delivery. GitLab partners with other best-in-class cloud companies so your teams can use tools that best align with your team's DevOps ecosystem. Application development requires speed and iteration, making seamless collaboration a necessity to deliver real business value. GitLab embraces connecting all phases of the software development lifecycle (SDLC) in a DevOps ecosystem that fuels visibility, collaboration, and velocity.
How to use GitLab with Atlassian's Jira
We know that many companies have been using Jira for project management, and have existing data and business processes built into their instance. For some of these customers, this means it can be difficult and cost-prohibitive to move off of Jira. We believe that people (and tools) work better when they're all in one place, so to serve these customers, we built a seamless integration between GitLab and Jira. By using the GitLab for Jira app in the Atlassian Marketplace, you can integrate GitLab.com and Jira Cloud harmoniously.
Here's a short list of what you can do when integrating GitLab with Jira:
- One GitLab project integrates with all the Jira projects in a single Jira instance.
- Quickly navigate to Jira issues from GitLab.
- Detect and link to Jira issues from GitLab commits and merge requests.
- Log GitLab events in the associated Jira issue.
- Automatically close (also called "transition") Jira issues with GitLab commits and merge requests.
How to configure the integration
There are two methods for configuring the integration. The Jira DVCS connector, and the method we describe in this blog post. The DVCS connector updates data only once per hour, while our method syncs data in real time. We recommend using our method for this reason, but if you are not using both of these environments then use the Jira DVCS connector instead.
- First, go to Jira Settings > Apps > Find new apps, then search for GitLab.
- Next, click GitLab for Jira, then click "Get it now". Or, go the App in the marketplace, directly.
Click the yellow button to download the app.
- Third, after installing, click "Get started to go to the configurations" page. This page is always available under Jira Settings > Apps > Manage apps.
Click the "Get started button".
- Fourth, in Namespace, enter the group or personal namespace, and then click "Link namespace to Jira". The user that is setting up GitLab for Jira must have Maintainer access to the GitLab namespace. Note: The GitLab user only needs access when adding a new namespace. For syncing with Jira, we do not depend on the user’s token.
Add a namespace.
After a namespace is added, all of the future commits, branches, and merge requests within all projects under that namespace will be synced to Jira. At the moment, past data cannot be synced.
For more information, see the documentation.
Troubleshooting GitLab for Jira
The GitLab for Jira App uses an iframe to add namespaces on the settings page. Some browsers block cross-site cookies which can lead to a message saying that the user needs to log on to GitLab.com even though the user is already logged in: "You need to sign in or sign up before continuing."
In this situation, we recommend using Firefox, Google Chrome or enabling cross-site cookies in your browser.
Limitations of GitLab for Jira
This integration is currently not supported on GitLab instances under a relative URL (for example, http://yourcompanyname.com/gitlab).
How to use GitLab for Jira
After the integrating GitLab and Jira, you can:
Refer to any Jira issue by its ID in GitLab branch names, commit messages, and merge request titles.
Using commit messages in GitLab, you can move Jira issues along that Jira projects defined transitions.
In this image, you can see that this Jira issue has four stages: Backlog, selected for development, in progress, and done.
- As referenced in the base GitLab-Jira integration, when you reference an issue in a comment on a merge request and commit, e.g., PROJECT-7, the basic integration adds a comment in Jira issue. Also, by commenting in a Jira transition (putting a # first), this will move a Jira issue to the desired transition. Below is an example using the built-in GitLab Web IDE (this can be done in your Web IDE of choice as well).
There are multiple Jira transition options.
- Now, the user can see linked branches, commits, and merge requests in Jira issues (merge requests are called "pull requests" in Jira issues). Jira issue IDs must be formatted in UPPERCASE for the integration to work.
View branches, commits, and merge requests in your Jira issue.
- Click the links to see your GitLab repository data.
How to take a look at your GitLab commits.
Take a deep Dive into your GitLab merge requests.
For more information on using Jira Smart Commits to track time against an issue, specify an issue transition, or add a custom comment, see the Atlassian page using Smart Commits.
Watch and learn
More of a video person? For a walkthrough of the integration with GitLab for Jira, watch and learn how to configure GitLab Jira Integration using Marketplace App.
GitLab helps teams ship software faster with technology integration options, such as the integration with Jira, that automate tasks, provide visibility into development progress and the greater end-to-end software lifecycle. We recognize that many companies use Jira for Agile project management and our seamless integration brings Jira together with GitLab.
Cover image by Mikołaj Idziak on Unsplash.
“Connect your GitLab MR's, Branches and Commits with Jira Issues” – Tye Davis
Click to tweet