doc/user/project/import/jira_migration_options.md
{{< details >}}
{{< /details >}}
You have several options to migrate your Jira projects to GitLab. Before you decide on a migration strategy, first decide if you even need to move your Jira issues to GitLab. In many cases, the Jira issue data is no longer relevant or actionable. By starting fresh in GitLab, you can focus on setting up your processes and workflows to maximize the advantages of using GitLab.
If you opt to migrate your Jira issues, you can choose from several migration options:
GitLab has a built-in tool to import your Jira issue data. To use the GitLab Jira importer:
Alternatively, you can watch a complete demo of the process: <i class="fa-youtube-play" aria-hidden="true"></i> Import Jira project issues to GitLab
<!-- Video published on 2023-07-27 -->To import the Jira issue data from a CSV file into your GitLab project:
title, description, due_date, and milestone are imported.For a high-level overview, see the Jira migration service data sheet.
To get a personalized quote, visit the GitLab Professional Services page and select Request Service.
To establish a one-way or two-way data synchronization between Jira and GitLab, you can use the following third-party services:
You can use one of the available open-source migration scripts to help you migrate your Jira issues to GitLab.
Many of our customers have had success using jira2gitlab.
View a complete demo of the process: <i class="fa-youtube-play" aria-hidden="true"></i> Migrating from Jira to GitLab with Jira2GitLab
<!-- Video published on 2024-01-09 -->GitLab Professional Services has built their fork of the previously-mentioned jira2gitlab script, Jira2Lab:
As stated in the Jira2Lab README:
We encourage users to compare both tools to best meet their migration needs.
For full control over the migration process, you can write your own custom script that migrates your Jira issues to GitLab in a way that suits your needs exactly. GitLab provides APIs to help automate your migration:
To get started, familiarize yourself with the following GitLab API endpoints:
When writing your script, you need to map the Jira issue fields to their corresponding GitLab equivalents. Here are some tips:
input name::value1, input name::value2).status::in progress).priority::1).You might also need to handle parsing the Atlassian Document Format and mapping it to GitLab Flavored Markdown. You can approach this in many different ways. For inspiration, review an example commit. This commit added a method to parse the Atlassian Document Format to GitLab Flavored Markdown for the GitLab Jira importer.
If you run GitLab locally, you can also convert Atlassian Document Format to GitLab Flavored Markdown manually in the Rails console. To do so, execute:
text = <document in Atlassian Document Format>
project = <project that wiki is in> or nil
Banzai.render(text, pipeline: :adf_commonmark, project: project)