● Blog / Actus

How do you migrate from Jira Data Center without losing history?

You migrate without losing history by reading Jira's full data (an XML backup or the REST API, not a CSV summary) and by testing the import before you commit. Import into a staging copy of the target, reconcile counts and sampled issues against Jira, then run a final incremental pass at cutover. A flat CSV export loses the status changes behind each issue, because history needs a source that includes the changelog.

The companion post covers your options at Jira Data Center end of life.

What has to move when you leave Jira Data Center?

Make the list before you pick a tool, because every tool covers a different subset.

  • Issues with their original keys, so references in documents, commit messages and e-mails still resolve.
  • History (the changelog): who changed what and when, with Jira's timestamps. This is what an auditor or program manager asks for months later.
  • Comments with authors, dates and any visibility restrictions, and attachments linked to the right issue or comment.
  • Links between issues, plus parent and epic relationships.
  • Workflows (statuses, transitions, transition rules) and custom fields (definitions, options, values).
  • Users: assignees, reporters, comment authors and history actors.
  • Sprints and boards, saved filters, components, versions, worklogs, and the permission and notification schemes if you want the new system to behave like the old one.

Marketplace app data is a separate list. Whether it moves depends on the app and the tool, so inventory your apps now.

Which export method should you use: REST API, XML backup or CSV?

The REST API. Jira Data Center's REST API has resource groups for issues, comments, attachments, issue links, search, boards and sprints, among others (Atlassian's REST reference). It reads the live system, so you can run it repeatedly. The costs are time and a credential with read access to everything in scope.

The XML backup. Jira can write a full XML snapshot of the database as a ZIP file (Atlassian: backing up data). Atlassian says a complete backup means the database and the shared home directory. It warns that an XML backup taken while Jira is in use is not guaranteed consistent, that Jira gives no warning when it isn't, and that such a backup can fail on restore. Its guidance is to block user access while you take one (Atlassian: preventing user access during XML backups). That matches what you want at cutover anyway: a frozen source. On a closed network a backup is also one file to carry instead of API access to open.

CSV. Atlassian's search export gives a CSV with a header row of the issue fields, comments and attachments in your search results, and notes that large exports (many hundreds of issues) are not recommended (Atlassian: working with search results). Its description does not mention change history, so do not assume the CSV has it. GitLab's CSV importer then takes only title, description, due date and milestone (GitLab docs). CSV suits a handful of issues, not a migration where history matters.

How do the migration approaches compare?

Approach Reads Jira through What carries over Air-gap fit Watch for
Jira CSV export, then a CSV import in the target CSV file Flat fields and comments; as little as title, description, due date and milestone in GitLab's CSV import Easy: one file No history; manual column mapping; Atlassian advises against large CSV exports
GitLab's built-in Jira importer Jira connection from GitLab Title, description and labels directly; users can be mapped; other metadata as plain text in the description Works if GitLab can reach Jira on your network Jira text formatting is not fully converted; GitLab's docs list comments and assignees as a proposed improvement
Your own script against Jira REST and the target's API REST API Whatever you write, with full control Works on your network You own every mapping, retry and reconciliation; GitLab's own guide says you may also have to convert Atlassian Document Format yourself
Professional services or third-party tools (GitLab's docs list several) Varies Varies Check each tool's connectivity needs Ask what they carry (history, attachments, links) and how you reconcile
Actus guided migration REST API (v2 plus agile v1) or backup ZIP (beta) Issues with keys, history, comments, attachments, worklogs, links, sprints, boards, filters and configuration; every unmapped element is reported Designed for it; the Jira instance and Actus stay on the same network Marketplace app data does not migrate; some Jira constructs have no equivalent and are listed in the report

What are the traps in a Jira migration?

Custom field mapping. Every Jira custom field needs a home in the target. Simple types (text, number, date, single and multi select, user, labels, URL) usually map. Checkboxes, cascading selects, trees and app-defined types often don't. GitLab's own guidance for a hand-written migration is to turn fixed-option fields into scoped labels and put free text into the description. Decide per field before the import, and drop fields nobody uses.

Workflow states. Statuses usually map by name. The trouble is the rules on transitions: conditions, validators and post-functions, especially ones written with scripts or marketplace apps. They won't carry over as code.

Restricted comments. Jira Data Center lets users restrict a comment to a project role or group (Atlassian KB). If you use that, check whether the target keeps the restriction, because an import that makes those comments visible to everyone who can see the issue has changed your access control. On a program with need-to-know rules, that matters.

User mapping on a closed network. Assignees, reporters, comment authors and history actors all reference Jira usernames. On a closed network those typically come from your LDAP or Active Directory, and the target may use the same directory. Match on username or e-mail first, then write a mapping file for the exceptions, then decide what to do with people who left but wrote half the history. Deleted users still appear in backups.

Attachment size. Attachments are usually most of the bytes. Check total size, the largest files and where the target stores them.

Downtime and drift. Plan a full import ahead of time, then a freeze, then an incremental pass for what changed.

Verification. The biggest trap is believing the import worked. Reconcile counts per project and per entity, and compare sampled issues, history included.

What is the step-by-step plan?

  1. Inventory: projects, custom fields, workflows and schemes, users and groups, marketplace apps, attachment volume and restricted-comment use.
  2. Baseline counts in Jira: issues, comments, attachments and links per project. You compare against these later.
  3. Decide scope: migrate active projects; decide whether closed ones move or stay in a read-only archive.
  4. Build the user mapping: match usernames and e-mails to the target directory and list the exceptions.
  5. Stand up the target on the same network, with your identity provider connected.
  6. Trial import into something you can throw away. Read the report, fix mappings, repeat until it holds no surprises.
  7. Review with the people who use it: open real issues side by side, with history, attachments and links.
  8. Rehearse the cutover on a recent copy, and time it.
  9. Cut over: block user access to Jira, take the final backup or read, run the incremental import, check counts against your baseline, switch users.
  10. Keep Jira read-only as an archive for a defined period, and redirect old issue links.

How does Actus's guided migration do it?

I build Actus, so read this part with that in mind. Actus (product page, API and migration page) imports a Jira Server or Data Center instance from one of two sources.

  • A backup file (beta). A standard Jira backup ZIP (entities.xml, activeobjects.xml), read with a streaming parser built to Atlassian's documented format, so a multi-gigabyte file never needs file-sized memory. Attachment files go under data/attachments/ in the ZIP. It has not yet been run on a customer backup, so start with a dry run and read the report; anything it does not recognise is listed, not guessed.
  • The REST API. Jira REST API v2 plus the agile API, with a personal access token or username and password. Reads are paged and capped at five concurrent requests. An authentication failure ends the run.

Only a global administrator can run a migration. The flow follows the plan above:

  1. Create a job with the source and, optionally, a user-mapping CSV. The source is validated on creation.
  2. Dry run. The full pipeline runs against a scratch staging database; production receives no rows, no attachment files and no e-mail. You can browse the imported projects and work items in staging until the next dry run or until you discard it.
  3. Read the report. It has four sections: counts per entity, the mapping decisions made, every Jira configuration element that has no Actus equivalent, and per-item errors. These sections are sorted deterministically, so a dry run and a confirmed run over the same state produce identical sections. You can download the report as JSON.
  4. Confirm. The confirmed run reuses the same stored mapping and commits to production in one transaction. If a run-level failure occurs, the transaction rolls back and nothing partial is committed. Confirm only works if the most recent successful run was a dry run.
  5. Delta runs. Until cutover, a delta run imports only what changed in Jira since the last successful run, tracked by the highest Jira updated time. It is idempotent: it updates in place and does not duplicate. A delta run never deletes anything; work items deleted in Jira are listed in the report and an administrator decides.

What carries over

  • Issues keep their Jira keys, and the project counter continues after the highest imported number. Old /browse/KEY links and filter links redirect to the Actus work item.
  • History: each Jira changelog item becomes a history entry in Jira's order with Jira's timestamps and the mapped author.
  • Comments keep authors and timestamps. Attachments are linked to their comment when Jira linked them and stored in the configured store (a local volume or an S3-compatible bucket on your network).
  • Worklogs, estimates, links, components, versions, sprints, boards and saved filters.
  • Configuration: issue types, workflows with the transition rules that map, custom fields, project roles, permission, notification and security schemes.
  • Users resolve in a fixed order: your mapping file, then username, then e-mail, and otherwise Actus creates an inactive local user so authorship is preserved. The decision is persisted with the job and reused on every run.
  • Key collisions: if a Jira project key matches an existing Actus project, you choose per project to re-key it (old keys stay resolvable as aliases) or merge it into the existing project (its items are renumbered; the original Jira key is kept on each item and searchable). With no choice, the project is held back.

What does not carry over, and what to expect

  • Marketplace app data and behavior. Actus has built-in time tracking, automation rules, webhooks and a Jira-compatible API subset. Anything else is a custom feature, and we go through your apps in the dry run.
  • Constructs with no equivalent, such as script-based transition conditions, some custom field types (checkbox, cascading select, tree and others), and Jira's rank. They are never silently dropped: they are named in the report's unmapped section.
  • Comment restrictions. Imported comments come in unrestricted: no visibility role or group is set. Review this before you confirm if you use restricted comments in Jira.
  • Formatting and limits. Jira's rich-text markup is sanitized. Values that don't fit are adjusted with a decision recorded: summaries over 255 characters are truncated, and worklogs that round to zero minutes are skipped with an error in the report.

Actus runs on your own infrastructure from an offline bundle (security and deployment). To see what your instance would produce, plan a dry run.

Frequently asked questions

Can I migrate Jira issue history, not just the issues?

Yes, if your source includes the changelog. Atlassian lists change history among the data in Jira's database, so a backup has it, and Actus reads changelogs over REST. Atlassian's CSV description does not mention history. Actus turns Jira changelog items into history entries with Jira's timestamp and author, and lists any field it cannot map in the report.

Should I use the XML backup or the REST API?

Use a backup when you want one file you can carry across a closed network, and block access while you take it, because Atlassian warns that backups taken during use may be inconsistent. Use the REST API when you want repeated reads from the live system. Actus's backup import is in beta: start with a dry run either way.

How long does a Jira migration take?

It depends on data size, attachments and how many mapping decisions you face. I won't quote a number without your instance; time a dry run on a recent copy.

What about users who no longer exist or aren't in our directory?

Decide the rule before you import. In Actus, unmatched users become inactive local users so assignee, reporter and comment authorship are preserved, and they can't sign in. Your mapping file can point any Jira username at an existing user.

Can I roll back a confirmed migration?

Actus commits a confirmed run in one transaction, and a failed run rolls back completely. After a successful run, back out as you would any production change: restore a database backup taken before you confirmed (Actus ships backup and restore scripts), and keep Jira read-only until you've verified the result.

Sources