Changes between Version 3 and Version 4 of TracImport


Ignore:
Timestamp:
Dec 30, 2016, 2:54:47 AM (7 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracImport

    v3 v4  
    1 = チケットデータのインポート = #Importingticketdata
    2 [[PageOutline]]
     1= Importing ticket data
    32
    4 他の問題追跡システムから移行することによって、チケットを通じて外部のアクションを実行したり、様々なデータベースと簡単に同期するために、 Trac にチケットをインポート又は更新するためのツールやプラグイン、スクリプトがあります。
     3[[PageOutline(2-5,Contents,pullout)]]
    54
    6 下記で、いくつか紹介します。
     5To migrate issue tickets from other issue-tracking systems into Trac or perform housekeeping actions on tickets or simply synchronize different databases, there are some tools, plugins and scripts available.
    76
    8 == !TicketImportPlugin ==
     7== !TicketImportPlugin
    98
    10  [http://trac-hacks.org/wiki/TicketImportPlugin TicketImportPlugin] :: このプラグインは '''CSV ファイル''' 及び '''Excel ファイル''' ([http://pypi.python.org/pypi/xlrd xlrd library] をインストールすれば) からチケットをインポート又は更新します。
     9[https://trac-hacks.org/wiki/TicketImportPlugin TicketImportPlugin]: a plugin that lets you import or update into Trac a series of tickets from a '''CSV file''' or (if the [https://pypi.python.org/pypi/xlrd xlrd library] is installed) from an '''Excel spreadsheet'''.
    1110
    12 == !ExportImportXlsPlugin ==
     11== !ExportImportXlsPlugin
    1312
    14  [http://trac-hacks.org/wiki/ExportImportXlsPlugin ExportImportXlsPlugin] :: このプラグインは '''XLS ファイル''' を経由して、チケットをインポート及びエクスポートするための管理画面を追加します。
    15   * Python パッケージ xlwt/rxld に依存します
     13[https://trac-hacks.org/wiki/ExportImportXlsPlugin ExportImportXlsPlugin]: a plugin that adds an admin panel for exporting and importing tickets via '''XLS file'''. Requires the python packages xlwt/rxld.
    1614
    17 == Bugzilla ==
     15== Bugzilla
    1816
    19 [http://trac-hacks.org/wiki/BugzillaIssueTrackingPlugin BugzillaIssueTrackingPlugin] :: TracLinks を保持したまま Trac に Bugzilla を統合します。
    20 
    21 [http://trac.edgewall.org/browser/trunk/contrib/bugzilla2trac.py bugzilla2trac.py] スクリプトを使用すると、チケットのデータを Bugzilla からインポートすることができます。 bugzilla2trac.py スクリプトは Trac の配布を展開した contrib/ ディレクトリにあります。
     17[https://trac-hacks.org/wiki/BugzillaIssueTrackingPlugin BugzillaIssueTrackingPlugin]: a plugin that integrates Bugzilla issue data into Trac keeping TracLinks. Ticket data can be imported from Bugzilla using the [trac:browser:trunk/contrib/bugzilla2trac.py bugzilla2trac.py] script, available in the contrib/ directory of the Trac distribution.
    2218
    2319{{{
     
    3935}}}
    4036
    41 現在のところ、 Bugzilla からインポートされるのは以下のデータです:
     37Currently, the following data is imported from Bugzilla:
     38 * bugs
     39 * bug activity (field changes)
     40 * bug attachments
     41 * user names and passwords (put into a htpasswd file)
    4242
    43   * バグ
    44   * バグの更新 (属性の変更)
    45   * バグの添付ファイル
    46   * ユーザ名とパスワード (htpasswd ファイルに出力します)
     43The script provides a number of features to ease the conversion, such as:
     44 * PRODUCT_KEYWORDS: Trac has no concept of products, so the script provides the ability to attach a ticket keyword instead.
     45 * IGNORE_COMMENTS: Don't import Bugzilla comments that match a certain regexp.
     46 * 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.
    4747
    48 bugzilla2trac.py スクリプトは変換を楽にする機能を数多く備えています。例えば:
     48For more details on the available options, see the configuration section at the top of the script.
    4949
    50   * PRODUCT_KEYWORDS:  Trac にはプロダクトという概念がありません。このため、プロダクトをチケットのキーワードとして紐づけられるようになっています
     50=== Known Issues
     51{{{#!comment
     52Don't merge this section in the default page
     53}}}
     54[[TicketQuery(keywords=~bugzilla,status=!closed)]]
    5155
    52   * IGNORE_COMMENTS:  特定の正規表現にマッチする Bugzilla コメントをインポートしないようにします
     56The adequate milestone for valid bugzilla2trac issue is usually ''Not applicable'', which means that fixes to the contributed script are not planned for a particular Trac release, but can happen anytime.
    5357
    54   * STATUS_KEYWORDS:  Trac にない Bugzilla のステータスに対してチケットのキーワードを割り当てます。デフォルトでは、 Bugzilla のステータス 'VERIFIED' と 'RELEASED' は、 Trac のキーワードに変換されます
     58== Jira
    5559
    56 使用できるオプションについての更なる詳細についてはスクリプトの先頭にある configuration セクションを参照してください。
     60[https://trac-hacks.org/wiki/JiraToTracIntegration JiraToTracIntegration]: a plugin that provides tools to import Atlassian Jira backup files into Trac. The plugin 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 [th:XmlRpcPlugin].
     63 - Generates a htpasswd file containing the imported Jira users and their SHA-512 base64 encoded passwords.
    5764
    58 == Jira ==
     65== Mantis
    5966
    60  [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 ファイルを生成する
     67[https://trac-hacks.org/wiki/MantisImportScript MantisImportScript]: a script to import the following type of data from Mantis into Trac:
     68 * bugs
     69 * bug comments
     70 * bug activity (field changes)
     71 * attachments (as long as the files live in the mantis database, not on the filesystem).
    6472
    65 == Mantis ==
     73== !PlanetForge
    6674
    67  [http://trac-hacks.org/wiki/MantisImportScript MantisImportScript] :: 以下のデータを Mantis から Trac にインポートします:
    68   * バグ
    69   * バグのコメント
    70   * バグの状態 (フィールドの変更)
    71   * 添付ファイル (ファイルが filesystem になく mantis db にある場合)
     75[https://trac-hacks.org/wiki/PlanetForgeImportExportPlugin PlanetForgeImportExportPlugin]: this plugin exports Trac data (wiki, tickets, compoments, permissions, repositories, etc.) using the open format designed by the [https://gforge.inria.fr/projects/coclico/ COCLICO] project. It extends the webadmin panel and the 'trac admin ...' command. Has no 'import' feature.
    7276
    73 == !PlanetForge ==
     77== Scarab
    7478
    75  [http://trac-hacks.org/wiki/PlanetForgeImportExportPlugin PlanetForgeImportExportPlugin] :: このプラグインは COCLICO プロジェクトによりデザインされたオープンフォーマットを用いて、Trac のデータ (Wiki、チケット、コンポーネント、パーミッション、リポジトリ等) をエクスポートします。webadmin パネルと'trac admin ...' コマンドを拡張します。まだ、'import' の機能はありません。
     79[https://trac-hacks.org/wiki/ScarabToTracScript ScarabToTracScript]: a script that migrates Scarab issues to Trac tickets. Requires [th:XmlRpcPlugin].
    7680
    77 == Scarab ==
     81== Sourceforge
    7882
    79  [http://trac-hacks.org/wiki/ScarabToTracScript ScarabToTracScript] :: Scarab の Issue を Trac のチケットに移動させます。
    80     * [http://trac-hacks.org/wiki/XmlRpcPlugin XmlRpcPlugin] が必要です
     83[https://trac-hacks.org/wiki/SfnToTracScript SfnToTracScript]: importer of !SourceForge's new backup file (originated from #Trac3521).
     84Also, ticket data can be imported from Sourceforge using the [trac:browser:trunk/contrib/sourceforge2trac.py sourceforge2trac.py] script, available in the contrib/ directory of the Trac distribution.
    8185
    82 == Sourceforge ==
     86== Other
    8387
    84  [http://trac-hacks.org/wiki/SfnToTracScript SfnToTracScript] :: !SourceForge の新しいバックアップファイルをインポートします。 (#Trac3521より)
     88Since Trac uses a SQL database to store the data, you can also custom-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 them from your application.
    8589
    86  [http://trac.edgewall.org/browser/trunk/contrib/sourceforge2trac.py sourceforge2trac.py] スクリプトを使用すると、 Sourceforge からチケットのデータをインポートすることができます。 sourceforge2trac.py スクリプトも Trac 配布物を展開した contrib/ ディレクトリにあります。
     90=== Comma delimited file - CSV
    8791
    88 == その他 == #Other
     92See [trac:attachment:csv2trac.2.py:wiki:TracSynchronize csv2trac.2.py] for details. This approach is particularly useful if you need 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.
    8993
    90 Trac は データの保存に SQL データベースを使用しているので、データベースを調査することによって他のシステムからインポートすることができます。 [http://www.sqlite.org/sqlite.html sqlite] のコマンドラインで Trac データベースのテーブルを参照し、あなたが使用しているアプリケーションからデータベースのテーブルをインポートしてください。
    91 
    92 === カンマ区切りファイル - CSV === #Commadelimitedfile-CSV
    93 詳しくは [http://trac.edgewall.org/attachment/wiki/TracSynchronize/csv2trac.2.py csv2trac.2.py] を参照して下さい。 この方法は手動でたくさんのチケットを登録するようなときにとても便利です。 (最近の Trac のリリースでは、このスクリプトを使用するのにチケットの分類のフィールド (task など) が必要です)
    94 スクリプト上のコメント: スクリプトの 168 行目にエラーがあります。 ('Ticket' は 'ticket' としなければなりません )。また、重要度と優先度でリストされる値が逆になっています。
     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.
    9595
    9696----
    97 See also:
    98  * Wiki ページのインポート/エクスポートについて: TracAdmin
    99  * チケットのエクスポートについて: TracTickets, TracQuery
     97See also: 
     98 * to import/export wiki pages: TracAdmin,
     99 * to export tickets: TracTickets, TracQuery