About importing from Mantis

JIRA ships with the JIRA Importers Plugin pre-installed, so that you can import your bugs from Mantis.

Version 2.0 or later of the JIRA Importers Plugin is compatible with Mantis versions 1.1.8 to 1.2.4. The JIRA Importers Plugin requires your Mantis database to be MySQL or PostgreSQL. (The JIRA Importers Plugin has also been reported to work with MS SQL, Oracle and DB2, but it has not been tested against these databases.)

(info) For the very latest version of the JIRA Importers Plugin, please visit plugins.atlassian.com.

The import process consists of:

  1. Running the Import Wizard to configure the import process and save it into a configuration file. (Note that you can edit your configuration file later by by re-running the Import Wizard and providing the name of your existing configuration file.)
  2. Configuring the connection from your JIRA server to the Mantis database.
  3. Running the import using your saved configuration file. You will typically do this several times (e.g. once or more for tests, once for production).

These steps are described in more detail below.

On this page:

During the import process, the following data is copied from the Mantis database into JIRA:

In Mantis

In JIRA

Import Notes

Project
Sub Project

Project

Mantis data is imported on a per-project basis. You can either specify an existing JIRA project as the target, or the importer will automatically create a project(s) for you at time of import. (For more information about JIRA projects, please see Defining a Project.)

Category

Component

You can choose to have the importer automatically create your Mantis components in JIRA, or choose to have bugs imported into no component in JIRA.

Version

Fix Version

Versions are imported from Mantis (if you choose). After importing, you can manually set appropriate versions to the Released state in JIRA if you wish.

Bug

Issue

Every Mantis bug becomes a JIRA issue of type 'Bug'.

ID

Bug Import ID

Each imported issue will be given a new JIRA ID, and the old Mantis ID will be saved into a JIRA custom field called 'Bug Import ID'. This custom field is searchable, so you can search for JIRA issues by their old Mantis ID. If you don't need this custom field, delete it or 'hide' it (as described in Specifying Field Behaviour).

Summary

Summary

 

Description

Description

Within text, Mantis links (e.g. #1234) are converted to JIRA links (e.g. TST-123).

Comments

Comments

Within text, Mantis links (e.g. #1234) are converted to JIRA links (e.g. TST-123).

Attachments

Attachments

Attachments are extracted from the Mantis database and saved to disk. To specify the location on disk, see Configuring File Attachments.

Priority

Priority
(or a custom field)

You can choose to map one of either the Mantis Priority field or the Mantis Severity field (see below) to the built-in JIRA Priority field, and the other to a custom field. (Alternatively, you can choose to map both the Mantis Priority field and the Mantis Severity field to JIRA custom fields.) When importing into the JIRA Priority field, you can configure mapping of specific Mantis values to specific JIRA values.

Severity

Priority
(or a custom field)

You can choose to map one of either the Mantis Priority field (see above) or the Mantis Severity field to the built-in JIRA Priority field, and the other to a custom field. (Alternatively, you can choose to map both the Mantis Priority field and the Mantis Severity field to JIRA custom fields.) When importing into the JIRA Priority field, you can configure mapping of specific Mantis values to specific JIRA values.

Status

Status

You can configure mapping of specific Mantis values to specific JIRA values, provided you create your workflows in JIRA before running the importer.

  • The JIRA 'Status' field is integral to JIRA workflow. To learn more, please see What is Workflow.
  • To create a JIRA workflow, please see Configuring Workflow.
  • To create a JIRA workflow scheme (which you can then associate with appropriate projects and Issue Types), please see Activating Workflow.

Resolution

Resolution

You can configure mapping of specific Mantis values to specific JIRA values.

Relationships

Links

You can configure mapping of specific Mantis relationship types to JIRA link types.

CC List

Watchers

 

User

User

You can choose to have the importer automatically create JIRA users for any Mantis users who do not already exist in JIRA.

  • Users who interacted with the Mantis system will be created as active accounts in JIRA. Other users will be imported into a special group called "mantis-import-unused-users" and will be deactivated.
  • Passwords from Mantis are not imported (as they are hashed in the database). Users from Mantis will need to get their passwords emailed to them the first time they log into JIRA.
  • Users with no real name stored in Mantis will get the portion of their email address (login name) before the "@" character as their Full Name in JIRA.
  • If you are using External User Management, the import process will not be able to create JIRA users; instead, the importer will give you a list of any new users that need to be created. You will need to create the users in your external user repository before commencing the import.
  • If you have a user-limited license (e.g. personal license), and the number of required users is larger than the limit, then the import will be stopped. A page will be displayed showing a list of users that can't be created.

Other fields

Custom fields

If your Mantis system contains any custom fields, you can choose to map them to specific JIRA custom field(s). If your custom fields don't yet exist in JIRA, the importer can automatically create them for you.

 

How to import from Mantis

  1. Before you begin, please backup your JIRA data.
  2. Log in to JIRA as as a user with the 'JIRA Administrators' global permission.
  3. Select 'Administration' > 'System' > 'Import & Export' > 'External System Import' > 'Mantis'.
  4. The 'Import issues from a Mantis installation' page will be displayed:
    Screenshot 1: the 'Import issues from a Mantis installation' page
  5. If you don't yet have a configuration file (or if you want to create a new one, or update the one you have), leave the 'Existing Configuration File' field blank and click 'Next' to create a new Configuration File:
  6. Configure the connection details to your Mantis database as follows:
  7. The 'Import Data' page will then be displayed with the following options:
  8. The importer will display updates as the import progresses, then a success message when the import is complete. You can download the import log if you wish.

Congratulations, you have successfully imported your Mantis projects into JIRA! If you have any questions or encounter any problems, please contact Atlassian support.