Version 1 (modified by codeFiend, 8 years ago) (diff)

New hack MantisImportScript, created by codeFiend

mantis2trac home


Mantis bugs can be imported using this script.

Currently, the following data is imported from Mantis:

  • bugs
  • bug comments
  • bug activity (field changes)
  • attachments (as long as they're stored in the database)

Attachments are imported ONLY if they're stored in the database. There's no provision for migrating filesystem-based attachments at this time. If you use the script, please read the NOTES section (at the top of the file) and make sure you adjust the config parameters for your environment.

Bugs/Feature Requests

Existing bugs and feature requests for MantisImportScript are here.

If you have any issues, create a new ticket.


Download the zipped source from here.


You can check out MantisImportScript from here using Subversion, or browse the source with Trac.

Example has similar parameters as the script:

mantis2trac - Imports a bug database from Mantis into Trac.

Usage: [options]

Available Options:

  --db [MySQL dbname]              - Mantis database
  --tracenv /path/to/trac/env      - Full path to Trac db environment

Recent Changes

[11733] by codeFiend on 2012-07-17 13:04:59
syncing changes from github
[2213] by codeFiend on 2007-05-02 07:38:44

applying patch for ticket #1448 by liris dot pp at gmail dot com

[1929] by codeFiend on 2007-02-07 23:00:04

MantisImportScript: second try to fix #1150


Author: codeFiend