Import from Mantis Bug Tracker
The import from Mantis Bug Tracker (MantisBT) lets you import projects, users, issues, and other entities from MantisBT to YouTrack.
A setup wizard navigates you through the import configuration process. It prompts you to enter the connection settings and lets you map projects in YouTrack to projects in MantisBT. If your MantisBT has a custom set of fields for issues, you can edit the import script in YouTrack directly.
Prerequisites
Before you import projects from MantisBT to YouTrack, check the following requirements:
Your MantisBT version is 2.14.0 or later.
Your YouTrack and MantisBT are accessible to inbound connections. Specifically, you need to make sure that your network doesn't block connections between your MantisBT and YouTrack.
Your user account in MantisBT has administrative permissions.
You have direct access to log in to the source application using a password or token.
YouTrack's import engine doesn't support authentication through external authentication modules.
Import Details
If the MantisBT database contains references to entities that do not exist in YouTrack yet, they are created. The YouTrack user account you use to run the import should have enough permissions to create all imported entities. We recommend that using an account with a System Admin role or the Low-level Admin Write permission to run the import.
Imported Entities
Here is the list of entities that are imported from MantisBT and their mapping to YouTrack entities:
Entity in MantisBT | Entity in YouTrack |
---|---|
Projects | Projects |
Issues | Issues |
Default issue fields | Custom fields |
Version fields | Custom fields |
Categories |
|
Tags | Tags |
Notes | Comments |
Attachments | Attachments |
Users monitoring issues | Watchers |
Relationships | Links |
Set up an Import from Mantis Bug Tracker
Before you add a new import configuration, you need to create an API token that will grant access to your MantisBT instance. Then you can use the token for authorization when setting up the import in YouTrack.
The setup wizard guides you through the setup process.
To configure an import from Mantis Bug Tracker:
From the Administration menu, select .
Click the New import button to open the setup dialog.
Select Mantis.
Settings for a New Import from Mantis are displayed.
Enter values for the following settings:
Setting
Description
URL
The URL of the MantisBT.
Token
The API token from the administrator account in MantisBT.
If required by your MantisBT, enable the Use SSL key for client authentication option.
Click the Next button.
The second set of import settings is displayed.
Expand the Manage import for optional datasets section. Here you can configure the import engine to ignore certain parts of the source database during import.
Setting
Description
Issue history
Disable this toggle to ignore historical changes of issues during import.
Issue links
Disable this toggle to ignore links between issues during import.
By default, these toggles are enabled. This means that YouTrack will pull historical changes and issue links from the import source if the import script supports it.
Select the source and the target YouTrack projects for the import. For more details about project mapping configuration, see Project Mapping.
Click the Start import button.
YouTrack creates new projects and imports data to the existing ones according to the configured project mapping.
YouTrack imports issues, comments, and users from the selected MantisBT projects to the target YouTrack projects.
When you have set up an import, it appears in the Imports list. To view configuration and import details, select the import configuration from the list.
In the details sidebar, YouTrack shows import status, the date and time of the last import, and details on the data that was imported. If there are any problems encountered during import, the error messages are displayed here.
Click the Resume button in the toolbar to explicitly start polling for changes and importing updates from the source MantisBT project.
You can also download the import log file to study and investigate when needed.
Project Mapping
On the final step of the import setup, you can select those MantisBT projects you want to import to YouTrack. You can also choose whether to create a new project for the import or import data into an existing project in YouTrack.
YouTrack recognizes when a web address has already mapped a source project by a previous import. Imported source projects that have already been mapped in YouTrack aren't selectable. You can create multiple import jobs from the same source without importing duplicate data.
To configure project mapping:
Locate those MantisBT projects that you want to import.
Use the filter bar on the right to filter projects by name.
Select the projects that you want to import. Select the option at the top of the list to import all available MantisBT projects.
Select a target YouTrack project for each MantisBT project.
When loading the list of MantisBT projects for mapping, YouTrack checks for existing YouTrack projects with corresponding names. If it finds a YouTrack project with the same name as the MantisBT one, YouTrack suggests it as the target project.
If there is no existing YouTrack project with the corresponding name, YouTrack suggests creating a new one.
If you want to change a target project, select another option from the corresponding dropdown on the list.
Click Start import to finalize import setup and start the import.
Import starts.
Import Options
After the initial import, the following controls are available in the sidebar:
Control | Description |
---|---|
Resume | Immediately imports any changes made in the selected MantisBT projects after the previous import. |
Edit | Opens the integration settings page in edit mode. Use this option to connect to a different MantisBT instance, update the login credentials, or update project mapping. |
Delete | Deletes the current import settings. Projects, issues, comments, users, and groups that were imported from the connected MantisBT instance are not affected. If you delete the import settings and connect to the same MantisBT instance, the issues are re-imported into existing projects with new issue IDs. |
Download import log | Downloads the import log. Use this option to view and investigate errors that occurred during import. |