Äîêóìåíò âçÿò èç êýøà ïîèñêîâîé ìàøèíû. Àäðåñ îðèãèíàëüíîãî äîêóìåíòà : http://kodomo.cmm.msu.su/trac/tanchiki/wiki/TracImport?action=diff&version=2
Äàòà èçìåíåíèÿ: Unknown
Äàòà èíäåêñèðîâàíèÿ: Mon Apr 11 04:02:07 2016
Êîäèðîâêà: IBM-866
TracImport (diff) òÀÓ Tanchiki

Changes between Version 1 and Version 2 of TracImport


Ignore:
Timestamp:
08/21/13 19:46:14 (3 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracImport

    v1 v2 ˆà
    11= Importing ticket data =ˆà
    ˆà2[[PageOutline]]ˆà
    ˆà3ˆà
    ˆà4By 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ˆà
    ˆà6Below, 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.ˆà
    216ˆà
    317== Bugzilla ==ˆà
    ˆà18ˆà
    ˆà19 [http://trac-hacks.org/wiki/BugzillaIssueTrackingPlugin BugzillaIssueTrackingPlugin] :: integrates Bugzilla into Trac keeping TracLinksˆà
    420ˆà
    521Ticket 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.ˆà
    òÀæ òÀæ ˆà
    4056For more details on the available options, see the configuration section at the top of the script.ˆà
    4157ˆà
    42ˆà== Sourceforge ==ˆà
    ˆà58== Jira ==ˆà
    4359ˆà
    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ˆà
    4564ˆà
    4665== Mantis ==ˆà
    4766ˆà
    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:ˆà
    5368  * bugsˆà
    5469  * bug commentsˆà
    5570  * 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) .ˆà
    5772ˆà
    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 ==ˆà
    5974ˆà
    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. ˆà
    6376ˆà
    64ˆàUsage: mantis2trac.py [options] ˆà
    ˆà77== Scarab ==ˆà
    6578ˆà
    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]ˆà
    7481ˆà
    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ˆà
    ˆà86Also, 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.ˆà
    7787ˆà
    7888== Other ==ˆà
    òÀæ òÀæ ˆà
    8090Since 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.ˆà
    8191ˆà
    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 ===ˆà
    ˆà93See [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)ˆà
    ˆà94Comments 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. ˆà
    8495ˆà
    ˆà96----ˆà
    ˆà97See also: ˆà
    ˆà98 * to import/export wiki pages: TracAdmin, ˆà
    ˆà99 * to export tickets: TracTickets, TracQueryˆà