TracImport のバージョン 1 とバージョン 2 との変更
- 日時:
- 2015/05/27 0:24:03 (11年前)
凡例:
- 変更なし
- 追加
- 削除
- 更新
-
TracImport
v1 v2 1 = Importing ticket data =1 = チケットデータのインポート = #Importingticketdata 2 2 [[PageOutline]] 3 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. 4 他の問題追跡システムから移行することによって、チケットを通じて外部のアクションを実行したり、様々なデータベースと簡単に同期するために、 Trac にチケットをインポート又は更新するためのツールやプラグイン、スクリプトがあります。 5 5 6 Below, follows a collection of some of those. 6 下記で、いくつか紹介します。 7 7 8 8 == !TicketImportPlugin == 9 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'''.10 [http://trac-hacks.org/wiki/TicketImportPlugin TicketImportPlugin] :: このプラグインは '''CSV ファイル''' 及び '''Excel ファイル''' ([http://pypi.python.org/pypi/xlrd xlrd library] をインストールすれば) からチケットをインポート又は更新します。 11 11 12 12 == !ExportImportXlsPlugin == 13 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.14 [http://trac-hacks.org/wiki/ExportImportXlsPlugin ExportImportXlsPlugin] :: このプラグインは '''XLS ファイル''' を経由して、チケットをインポート及びエクスポートするための管理画面を追加します。 15 * Python パッケージ xlwt/rxld に依存します 16 16 17 17 == Bugzilla == 18 18 19 [http://trac-hacks.org/wiki/BugzillaIssueTrackingPlugin BugzillaIssueTrackingPlugin] :: integrates Bugzilla into Trac keeping TracLinks 19 [http://trac-hacks.org/wiki/BugzillaIssueTrackingPlugin BugzillaIssueTrackingPlugin] :: TracLinks を保持したまま Trac に Bugzilla を統合します。 20 20 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. 21 [http://trac.edgewall.org/browser/trunk/contrib/bugzilla2trac.py bugzilla2trac.py] スクリプトを使用すると、チケットのデータを Bugzilla からインポートすることができます。 bugzilla2trac.py スクリプトは Trac の配布を展開した contrib/ ディレクトリにあります。 22 22 23 23 {{{ … … 39 39 }}} 40 40 41 Currently, the following data is imported from Bugzilla:41 現在のところ、 Bugzilla からインポートされるのは以下のデータです: 42 42 43 * bugs44 * bug activity (field changes)45 * bug attachments46 * user names and passwords (put into a htpasswd file)43 * バグ 44 * バグの更新 (属性の変更) 45 * バグの添付ファイル 46 * ユーザ名とパスワード (htpasswd ファイルに出力します) 47 47 48 The script provides a number of features to ease the conversion, such as:48 bugzilla2trac.py スクリプトは変換を楽にする機能を数多く備えています。例えば: 49 49 50 * PRODUCT_KEYWORDS: Trac doesn't have the concept of products, so the script provides the ability to attach a ticket keyword instead.50 * PRODUCT_KEYWORDS: Trac にはプロダクトという概念がありません。このため、プロダクトをチケットのキーワードとして紐づけられるようになっています 51 51 52 * IGNORE_COMMENTS: Don't import Bugzilla comments that match a certain regexp.52 * IGNORE_COMMENTS: 特定の正規表現にマッチする Bugzilla コメントをインポートしないようにします 53 53 54 * STATUS_KEYWORDS: Attach ticket keywords for the Bugzilla statuses not available in Trac. By default, the 'VERIFIED' and 'RELEASED' Bugzilla statuses are translated into Trac keywords.54 * STATUS_KEYWORDS: Trac にない Bugzilla のステータスに対してチケットのキーワードを割り当てます。デフォルトでは、 Bugzilla のステータス 'VERIFIED' と 'RELEASED' は、 Trac のキーワードに変換されます 55 55 56 For more details on the available options, see the configuration section at the top of the script. 56 使用できるオプションについての更なる詳細についてはスクリプトの先頭にある configuration セクションを参照してください。 57 57 58 58 == Jira == 59 59 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 file62 - 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 passwords60 [http://trac-hacks.org/wiki/JiraToTracIntegration JiraToTracIntegration] :: Atlassian が開発している Jira のバックアップファイルから Trac にインポートが行えます。このプラグインは Python 3.1 で書かれたコマンドラインツールで、下記の機能があります: 61 - Jira のバックアップ XML ファイルを解析する 62 - Jira のデータおよび添付ファイルを Trac の [http://trac-hacks.org/wiki/XmlRpcPlugin XmlRpcPlugin] に送信する 63 - Jira のユーザ情報と base64 エンコードされた SHA-512 パスワードから htpasswd ファイルを生成する 64 64 65 65 == Mantis == 66 66 67 [http://trac-hacks.org/wiki/MantisImportScript MantisImportScript] :: script to import from Mantis into Trac the following data:68 * bugs69 * bug comments70 * bug activity (field changes)71 * attachments (as long as the files live in the mantis db, not on the filesystem) .67 [http://trac-hacks.org/wiki/MantisImportScript MantisImportScript] :: 以下のデータを Mantis から Trac にインポートします: 68 * バグ 69 * バグのコメント 70 * バグの状態 (フィールドの変更) 71 * 添付ファイル (ファイルが filesystem になく mantis db にある場合) 72 72 73 73 == !PlanetForge == 74 74 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.75 [http://trac-hacks.org/wiki/PlanetForgeImportExportPlugin PlanetForgeImportExportPlugin] :: このプラグインは COCLICO プロジェクトによりデザインされたオープンフォーマットを用いて、Trac のデータ (Wiki、チケット、コンポーネント、パーミッション、リポジトリ等) をエクスポートします。webadmin パネルと'trac admin ...' コマンドを拡張します。まだ、'import' の機能はありません。 76 76 77 77 == Scarab == 78 78 79 [http://trac-hacks.org/wiki/ScarabToTracScript ScarabToTracScript] :: script that migrates Scarab issues to Trac tickets80 * Requires [http://trac-hacks.org/wiki/XmlRpcPlugin XmlRpcPlugin]79 [http://trac-hacks.org/wiki/ScarabToTracScript ScarabToTracScript] :: Scarab の Issue を Trac のチケットに移動させます。 80 * [http://trac-hacks.org/wiki/XmlRpcPlugin XmlRpcPlugin] が必要です 81 81 82 82 == Sourceforge == 83 83 84 [http://trac-hacks.org/wiki/SfnToTracScript SfnToTracScript] :: importer of !SourceForge's new backup file (originated from #Trac3521)84 [http://trac-hacks.org/wiki/SfnToTracScript SfnToTracScript] :: !SourceForge の新しいバックアップファイルをインポートします。 (#Trac3521より) 85 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. 86 [http://trac.edgewall.org/browser/trunk/contrib/sourceforge2trac.py sourceforge2trac.py] スクリプトを使用すると、 Sourceforge からチケットのデータをインポートすることができます。 sourceforge2trac.py スクリプトも Trac 配布物を展開した contrib/ ディレクトリにあります。 87 87 88 == Other ==88 == その他 == #Other 89 89 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. 90 Trac は データの保存に SQL データベースを使用しているので、データベースを調査することによって他のシステムからインポートすることができます。 [http://www.sqlite.org/sqlite.html sqlite] のコマンドラインで Trac データベースのテーブルを参照し、あなたが使用しているアプリケーションからデータベースのテーブルをインポートしてください。 91 91 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. 92 === カンマ区切りファイル - CSV === #Commadelimitedfile-CSV 93 詳しくは [http://trac.edgewall.org/attachment/wiki/TracSynchronize/csv2trac.2.py csv2trac.2.py] を参照して下さい。 この方法は手動でたくさんのチケットを登録するようなときにとても便利です。 (最近の Trac のリリースでは、このスクリプトを使用するのにチケットの分類のフィールド (task など) が必要です) 94 スクリプト上のコメント: スクリプトの 168 行目にエラーがあります。 ('Ticket' は 'ticket' としなければなりません )。また、重要度と優先度でリストされる値が逆になっています。 95 95 96 96 ---- 97 See also: 98 * to import/export wiki pages: TracAdmin,99 * to export tickets: TracTickets, TracQuery97 See also: 98 * Wiki ページのインポート/エクスポートについて: TracAdmin 99 * チケットのエクスポートについて: TracTickets, TracQuery
![(please configure the [header_logo] section in trac.ini)](/python/trac/mypz/chrome/common/trac_logo_mini.png)