Mantis からのデータのインポート

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

Jira にバンドルされている Jira Importers プラグインを使用すれば、ライブ Mantis データベースに接続することで、Mantis からデータをインポートできます。

(info) Our main website highlights some top reasons why people migrate from Mantis to JiraVersion 4.2 or later of the Jira Importers plugin is compatible with Mantis versions 1.1.8 to 1.2.16. The Jira Importers plugin requires that your Mantis database is MySQL, PostgreSQL or Microsoft SQL Server. We have also received reports that the Jira Importers plugin works with Oracle and DB2 databases. However, we have not tested this plugin against these databases.

Mantis を Jira にインポートする Jira インポーター プラグインでは新しいバージョンの MySQL コネクタ (7.0 以降) がサポートされていないことにご注意ください。これによって、インポーター プラグインによる Jira への Mantis のインポートが失敗する可能性があります。代わりに mysql-connector-java-5.1.46 ドライバ バージョンを使用することをおすすめします。 

Mantis からのインポートのプロセスで必要なのは、Mantis インポート ウィザード の実行(下記)だけです。

  • インポートプロセスでは個々のフィールドやフィールド値のマッピングを選択できます。一部は必須です。
  • Mantis Import Wizard の最後に、Mantis 設定ファイルを作成するオプションが表示されます。このファイルには、Mantis Import Wizard を通じて行った設定が含まれます。これは、本番システムでインポートを実行する前にテスト用 Jira サーバーで Mantis のインポートをテストする必要がある場合に便利です。

Mantis インポート ウィザードの実行

開始する前に、Jira データをバックアップします。

  1. Jira 管理者グローバル権限を持つユーザーとしてログインします。
  2. > [システム] を選択します。[インポートとエクスポート] > [外部システム インポート] を選択し、[外部プロジェクトのインポート] ページを開きます。
  3. Mantis を選択して Mantis インポート ウィザード: セットアップページを開きます。
  4. On the Mantis Import Wizard: Setup page, complete the following fields/options:

    Mantis URLMantis サイトの URL を指定します。これは、Web ブラウザで Mantis にアクセスするのに通常使用する URL です。
    Specify credentials

    Mantis の課題を Jira にインポートする場合、このチェックボックスを選択します。この場合、Mantis サイトで課題にアクセスするためのユーザー認証情報が必要です。
    このチェックボックスを選択すると、ユーザー認証情報を指定する Mantis Login および Mantis Passwod フィールドの表示/非表示が切り替わります。

    データベースタイプ

    Mantis インストールで使用するデータベースの種類を選択します。

    • PostgreSQL
    • Microsoft SQL Server
    • MySQL
    ホスト名Mantis サイトのデータベース サーバーを実行しているサーバーのホスト名または IP アドレスを指定します。
    ポートSpecify the TCP/IP port that the Mantis site's database server is listening on.
    (tick) This field is automatically populated with the default port value based on the Database Type you choose above.
    データベースSpecify the name of your Mantis database (into which Mantis saves its data).
    (info) The database name, username and user password can usually be found in the Mantis file config_inc.php. (Typically, the default username is "root" and the default password is empty). See also http://www.mantisbt.org/manual/manual.configuration.database.php
    ユーザ名Mantis がデータベースに接続するために使用するデータベース ユーザーを指定します。
    パスワードMantis がデータベースに接続するために使用するデータベースユーザー(上記)のパスワードを指定します。
    既存の設定ファイルを使用するLeave this checkbox cleared if you do not have a configuration file or if you want to create a new configuration file. Configuration files specify a mapping between fields in Mantis and those in Jira.
    (info)  Note:
      • このオプションを選択すると、既存の設定ファイルを指定するかどうか尋ねられます。
      • このオプションを選択しない場合、Mantis Import Wizard の最後に、以降のインポート (Mantis Import Wizard のこのステップでの再利用) に使用できる設定ファイルが作成されます。
    JDBC 接続パラメーター
    (展開した 詳細設定 タブ内)
    The Mantis Import Wizard will construct a JDBC-based database URL from the Mantis database server details you specify above. Jira uses this URL to connect to and import issues from Mantis. If you need to specify any additional connection parameters to your Mantis database, specify them here.
    (info) If you chose MySQL (above), the Mantis Import Wizard will add several additional connection parameters by default.
  5. 次へ ボタンをクリックして、 Mantis インポート ウィザードの プロジェクト マッピングの設定 ステップに進みます。

  6. On the Set up project mappings page, select which Mantis projects you wish to import into Jira.
    (info) All Mantis projects are selected by default, so clear the checkboxes under Import of the Mantis projects you do not wish to import into Jira.
    For Mantis projects you wish to import into Jira, click in Select a project and then do either of the following:
    • Jira に存在するプロジェクトの名前 (またはキー) を入力するか、ドロップダウン メニューを使用して既存の Jira プロジェクトを選択します。
    • ドロップダウンメニューから Create New を選択し、 Add A New Project ダイアログボックスで次の項目を入力します。
      1. 新規プロジェクトの名前
      2. A new project Key 
        (info) This will be used as the prefix for all issue IDs in your Jira project.
      3. プロジェクトリード
  7. Click the Next button to proceed to the Set up custom fields step of the Mantis Import Wizard.
    (info) This step will almost always appear because at least one Mantis field is not likely match an existing Jira field.

  8. [カスタム フィールドの設定] ページで、Mantis Import Wizard が既存の Jira フィールドに一致させることができない Mantis の外部フィールドごとに、次のいずれかを選択します。
    • Mantis Import Wizard で、Mantis のフィールド名に基づき、Jira のカスタム フィールドを自動的に新しく作成します。これが既定のオプションです。自動的に作成された Jira カスタム フィールドの名前が [Jira フィールド] ドロップダウン リストに表示されます。
  9. 次へ ボタンをクリックして、Mantis インポート ウィザードの フィールド マッピングの設定 ステップに進みます。
  10. On the Set up field mappings page, if there External fields in Mantis whose values you wish to modify before they are imported into Jira, select the Map field value checkboxes next to the appropriate fields.
    (info) Please note that it is mandatory to map Mantis's status (i.e. Status) field to specific Jira Status field values as the Jira Status field is an integral part of Jira workflows.
    • フィールド マッピング設定 ページに表示される可能性がある Mantis のその他の 外部フィールド は、以下のとおりです。

      Mantis の外部フィールド
      「フィールド値のマッピング」チェックボックスをオフにします。
      usernameMantis Import Wizard により、Mantis ユーザー名が Jira ユーザー名 (小文字) に自動的にマッピングされます。
      優先度Mantis Import Wizard により、Jira に不足している値が自動的に作成され、課題に適切な優先度 (例: Mantis の"Normal" が Jira で新規作成された "Normal") が設定されます。
      重大度Mantis インポート ウィザードは、このフィールドの値をマッピングしません。
      resolution既存の解決状況を使用する代わりに、インポーターにより Jira に対応する解決状況が作成されます。
    • Select the appropriate Jira Workflow Scheme in that will be used by the Mantis issues you will import into your Jira project.
      (info) If you are importing your Mantis issues into an existing Jira project, ensure that you choose the Jira workflow scheme used by that existing Jira project.

  11. 次へ ボタンをクリックして、Mantis インポート ウィザードの 値マッピングの設定 ステップに進みます。
  12. On the Set up value mappings page, specify Jira field values for each Mantis field value (as detected by the Mantis Import Wizard).
    (info) Any fields whose Map field value checkboxes were selected in the previous step of the Mantis Import Wizard will be presented on this page, including the mandatory status Mantis field.
  13. 次へ ボタンをクリックして、 Mantis インポート ウィザードの リンクの設定 ステップに進みます。
  14. [リンクの設定] ページで、Mantis Import Wizard で検出された Mantis の各リンク タイプに対応する Jira のリンク タイプを指定します。Jira のリンク タイプの詳細については、「課題リンクの設定」を参照してください。
  15. Click the Begin Import button when you are ready to begin importing your Mantis data into Jira. The importer will display updates as the import progresses, then a success message when the import is complete.
    (info) Note:
    • インポートで問題が生じた場合(または関心がある場合)、詳細ログのダウンロードリンクをクリックして、Mantis インポート ウィザードのプロセスに関する詳細情報を表示します。
    • この手順を通じて使用した設定と同じ(または類似の)設定で、別の Mantis 製品/プロジェクトまたはサイトからインポートする必要がある場合は、設定を保存  リンクをクリックして、Mantis 設定ファイルをダウンロードします。この設定ファイルは、Mantis インポート ウィザードの 最初のステップ で使用できます。

これで、Mantis データを Jira に正常にインポートできました。ご不明な点や、問題が生じた場合は、アトラシアン サポートにご連絡ください。

Mantis データを Jira フィールドにインポートするためのヒント

インポート プロセスでは、次のデータが Mantis データベースから Jira にコピーされます。

Mantis の場合

Jira 内

インポート時の注意

プロジェクト
サブプロジェクト

プロジェクト

Mantis データはプロジェクト単位でインポートされます。ターゲットとして既存の Jira プロジェクトを指定できますが、指定しない場合、インポート時にインポーターによって自動的にプロジェクトが作成されます。Jira プロジェクトの詳細については、「プロジェクトの定義」を参照してください。

カテゴリ

コンポーネント

インポーターによって Jira に Mantis コンポーネントを自動的に作成するか、Jira のコンポーネントにバグをインポートしないかを選択できます。

バージョン

修正対象バージョン

選択すると、Mantis からバージョンがインポートされます。インポート後、Jira で必要に応じて適切なバージョンをリリース済みに手動で設定できます。

バグ

課題

Mantis のバグはすべて Jira の "Bug" タイプの課題になります。

ID

Bug Import ID

インポートした各課題には新しい Jira ID が与えられ、古い Mantis ID は "Bug Import ID" という Jira カスタム フィールドに保存されます。このカスタム フィールドは検索可能なため、旧 Mantis ID で Jira の課題を検索できます。このカスタム フィールドが不要な場合は、削除または "非表示" にすることができます (「フィールド動作の指定」で説明)。

要約

要約


説明

説明

テキスト内の Mantis リンク (例: #1234) は Jira リンク (例: TST-123) に変換されます。

コメント

コメント

テキスト内の Mantis リンク (例: #1234) は Jira リンク (例: TST-123) に変換されます。

添付ファイル

添付ファイル

Mantis データベースから添付ファイルが抽出され、ディスクに保存されます。ディスク上の場所を指定するには、「ファイル添付を設定する」を参照してください。

Priority

優先度
(またはカスタムフィールド)

Mantis の優先度フィールドと Mantis の重要度フィールド (前述) のうち一方を組み込みの Jira 優先度フィールドにマッピングし、もう一方をカスタム フィールドにマッピングするように選択できます (Mantis 優先度フィールドと Mantis 重要度フィールドの両方を Jira カスタム フィールドにマッピングすることもできます)。Jira 優先度フィールドにインポートする場合、Mantis の特定の値から Jira の特定の値へのマッピングを設定できます。

深刻度

優先度
(またはカスタムフィールド)

Mantis の優先度フィールドと Mantis の重要度フィールド (前述) のうち一方を組み込みの Jira 優先度フィールドにマッピングし、もう一方をカスタム フィールドにマッピングするように選択できます (Mantis 優先度フィールドと Mantis 重要度フィールドの両方を Jira カスタム フィールドにマッピングすることもできます)。Jira 優先度フィールドにインポートする場合、Mantis の特定の値から Jira の特定の値へのマッピングを設定できます。

ステータス

ステータス

インポーターの実行前に Jira でワークフローを作成している場合、Mantis の特定の値から Jira の特定の値へのマッピングを設定できます。

  • Jira のステータス フィールドは Jira ワークフローに不可欠です。
  • Jira ワークフローを作成するには、「ワークフローで作業する」を参照してください。
  • 適切なプロジェクトや課題タイプに関連付けられるために Jira ワークフロー スキームを作成するには、「ワークフローを管理するを参照してください

ソリューション

ソリューション

Mantis の特定の値から Jira の特定の値へのマッピングを設定できます。

関係

リンク

Mantis の特定の関係タイプから Jira のリンク タイプへのマッピングを設定できます。

CC List

ウォッチャー


ユーザー

ユーザー

Mantis ユーザーが Jira に存在しない場合にインポーターで Jira ユーザーを自動的に作成するように指定できます。

  • Mantis システムでとのやりとりを行ったユーザーは、Jira のアクティブ アカウントとして作成されます。他のユーザーは "mantis-import-unused-users" という特別なグループにインポートされ、非アクティブ化されます。
  • Mantis のパスワードはインポートされません (データベースでハッシュ化されているため)。Fogbugz ユーザーは Jira への初回ログイン時にパスワードのメール通知を受け取る必要があります。
  • Mantis でユーザーの実名が保存されていない場合、メール アドレス (ログイン名) の "@" 文字の前の部分が Jira でのフルネームとして取得されます。
  • 外部のユーザー管理機能を使用している場合、インポートのプロセスで Jira ユーザーを作成することはできません。代わりに、作成が必要な新規ユーザーの一覧がインポーターによって提供されます。インポートを開始する前に外部のユーザー リポジトリでユーザーを作成する必要があります。
  • ユーザー数に制限のあるライセンス (例: パーソナル ライセンス) で、必要なユーザー数が制限を超える場合、インポートは停止されます。作成できないユーザーの一覧を示すページが表示されます。

その他のフィールド

カスタム フィールド

Mantis システムにカスタム フィールドがある場合、特定の Jira カスタム フィールドへのマッピングを行うことができます。Jira にカスタム フィールドがまだ存在していない場合、インポーターによって自動的にカスタム フィールドが作成されます。


Last modified on Mar 26, 2019

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.