Changes between Version 1 and Version 2 of TracImport
- Timestamp:
- 08/21/13 19:46:14 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracImport
v1 v2 ˆà 1 1 = Importing ticket data =ˆà ˆà 2 [[PageOutline]]ˆà ˆà 3 ˆà ˆà 4 By means of migrating from other issue-tracking systems, perform some external actions over tickets or simply synchronize different data bases, there are some available tools, plug-ins or scripts which lets you import or up-date tickets into Trac.ˆà ˆà 5 ˆà ˆà 6 Below, follows a collection of some of those.ˆà ˆà 7 ˆà ˆà 8 == !TicketImportPlugin ==ˆà ˆà 9 ˆà ˆà 10 [http://trac-hacks.org/wiki/TicketImportPlugin TicketImportPlugin] :: mainly, but not only, this plug-in lets you import or up-date into Trac a series of tickets from a '''CSV file''' or (if the [http://pypi.python.org/pypi/xlrd xlrd library] is installed) from an '''Excel file'''. ˆà ˆà 11 ˆà ˆà 12 == !ExportImportXlsPlugin ==ˆà ˆà 13 ˆà ˆà 14 [http://trac-hacks.org/wiki/ExportImportXlsPlugin ExportImportXlsPlugin] :: this plug-in add an admin panel for export and import tickets via '''XLS file'''.ˆà ˆà 15 * It depends on the python packages xlwt/rxld.ˆà 2 16 ˆà 3 17 == Bugzilla ==ˆà ˆà 18 ˆà ˆà 19 [http://trac-hacks.org/wiki/BugzillaIssueTrackingPlugin BugzillaIssueTrackingPlugin] :: integrates Bugzilla into Trac keeping TracLinksˆà 4 20 ˆà 5 21 Ticket data can be imported from Bugzilla using the [http://trac.edgewall.org/browser/trunk/contrib/bugzilla2trac.py bugzilla2trac.py] script, available in the contrib/ directory of the Trac distribution.ˆà òÀæ òÀæ ˆà 40 56 For more details on the available options, see the configuration section at the top of the script.ˆà 41 57 ˆà 42 ˆà == Sourceforge==ˆàˆà 58 == Jira ==ˆà 43 59 ˆà 44 ˆà Ticket data can be imported from Sourceforge using the [http://trac.edgewall.org/browser/trunk/contrib/sourceforge2trac.py sourceforge2trac.py] script, available in the contrib/ directory of the Trac distribution.ˆà ˆà 60 [http://trac-hacks.org/wiki/JiraToTracIntegration JiraToTracIntegration] :: provides tools to import Atlassian Jira backup files into Trac. The plug-in consists of a Python 3.1 commandline tool that:ˆà ˆà 61 - Parses the Jira backup XML fileˆà ˆà 62 - Sends the imported Jira data and attachments to Trac using the [http://trac-hacks.org/wiki/XmlRpcPlugin XmlRpcPlugin]ˆà ˆà 63 - Generates a htpasswd file containing the imported Jira users and their SHA-512 base64 encoded passwordsˆà 45 64 ˆà 46 65 == Mantis ==ˆà 47 66 ˆà 48 ˆà NB! The mantis2trac script now lives at http://trac-hacks.org/wiki/MantisImportScript . You can always get the latest version from http://trac-hacks.org/changeset/latest/mantisimportscript?old_path=/&filename=mantisimportscript&format=zipˆà 49 ˆà ˆà 50 ˆà Mantis bugs can be imported using the attached script.ˆà 51 ˆà ˆà 52 ˆà Currently, the following data is imported from Mantis:ˆà ˆà 67 [http://trac-hacks.org/wiki/MantisImportScript MantisImportScript] :: script to import from Mantis into Trac the following data:ˆà 53 68 * bugsˆà 54 69 * bug commentsˆà 55 70 * bug activity (field changes)ˆà 56 ˆà * attachments (as long as the files live in the mantis db, not on the filesystem) ˆàˆà 71 * attachments (as long as the files live in the mantis db, not on the filesystem) .ˆà 57 72 ˆà 58 ˆà 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.ˆà ˆà 73 == !PlanetForge ==ˆà 59 74 ˆà 60 ˆà mantis2trac.py has the same parameters as the bugzilla2trac.py script:ˆà 61 ˆà {{{ˆà 62 ˆà mantis2trac - Imports a bug database from Mantis into Trac.ˆà ˆà 75 [http://trac-hacks.org/wiki/PlanetForgeImportExportPlugin PlanetForgeImportExportPlugin] :: this plugin exports Trac data (wiki, tickets, compoments, permissions, repositories, etc.) using the open format designed by the COCLICO project. It extends the webadmin panel and the 'trac admin ...' command. Still has no 'import' feature. ˆà 63 76 ˆà 64 ˆà Usage: mantis2trac.py [options] ˆà ˆà 77 == Scarab ==ˆà 65 78 ˆà 66 ˆà Available Options:ˆà 67 ˆà --db <MySQL dbname> - Mantis databaseˆà 68 ˆà --tracenv /path/to/trac/env - Full path to Trac db environmentˆà 69 ˆà -h | --host <MySQL hostname> - Mantis DNS host nameˆà 70 ˆà -u | --user <MySQL username> - Effective Mantis database userˆà 71 ˆà -p | --passwd <MySQL password> - Mantis database user passwordˆà 72 ˆà -c | --clean - Remove current Trac tickets before importingˆà 73 ˆà --help | help - This help infoˆà ˆà 79 [http://trac-hacks.org/wiki/ScarabToTracScript ScarabToTracScript] :: script that migrates Scarab issues to Trac ticketsˆà ˆà 80 * Requires [http://trac-hacks.org/wiki/XmlRpcPlugin XmlRpcPlugin]ˆà 74 81 ˆà 75 ˆà Additional configuration options can be defined directly in the script.ˆà 76 ˆà }}} ˆà ˆà 82 == Sourceforge ==ˆà ˆà 83 ˆà ˆà 84 [http://trac-hacks.org/wiki/SfnToTracScript SfnToTracScript] :: importer of !SourceForge's new backup file (originated from #Trac3521)ˆà ˆà 85 ˆà ˆà 86 Also, ticket data can be imported from Sourceforge using the [http://trac.edgewall.org/browser/trunk/contrib/sourceforge2trac.py sourceforge2trac.py] script, available in the contrib/ directory of the Trac distribution.ˆà 77 87 ˆà 78 88 == Other ==ˆà òÀæ òÀæ ˆà 80 90 Since trac uses a SQL database to store the data, you can import from other systems by examining the database tables. Just go into [http://www.sqlite.org/sqlite.html sqlite] command line to look at the tables and import into them from your application.ˆà 81 91 ˆà 82 ˆà === Using a comma delimited file - CSV ===ˆà 83 ˆà See [http://trac.edgewall.org/attachment/wiki/TracSynchronize/csv2trac.2.py] for details. This approach is particularly useful if one needs to enter a large number of tickets by hand. (note that the ticket type type field, (task etc...) is also needed for this script to work with more recent Trac releases)ˆà ˆà 92 === Comma delimited file - CSV ===ˆà ˆà 93 See [http://trac.edgewall.org/attachment/wiki/TracSynchronize/csv2trac.2.py csv2trac.2.py] for details. This approach is particularly useful if one needs to enter a large number of tickets by hand. (note that the ticket type type field, (task etc...) is also needed for this script to work with more recent Trac releases)ˆà ˆà 94 Comments on script: The script has an error on line 168, ('Ticket' needs to be 'ticket'). Also, the listed values for severity and priority are swapped. ˆà 84 95 ˆà ˆà 96 ----ˆà ˆà 97 See also: ˆà ˆà 98 * to import/export wiki pages: TracAdmin, ˆà ˆà 99 * to export tickets: TracTickets, TracQueryˆà