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

JIRA にバンドルされている JIRA インポーター プラグイン を使用すれば、ライブ 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.

Note that the JIRA importer plugin that imports Mantis to JIRA does not yet support newer versions of MySQL connector (7.0 and later). That might cause importing Mantis to JIRA with the importer plugin to fail. We recommend using the mysql-connector-java-5.1.46 driver version instead. 

On this page:

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

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

    データベースタイプ

    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 インポート ウィザードの最後に、今後の Mantis インポート(Mantis インポート ウィザードの本ステップでの再利用)に使用できる設定ファイルが作成されます。
    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 インポート ウィザードが既存の 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 インポート ウィザードにより、Mantis ユーザー名が JIRA ユーザー名(小文字)に自動的にマッピングされます。
      優先度Mantis インポート ウィザードにより、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 のパスワードはインポートされません(データベースでハッシュ化されているためです)。 Mantis ユーザーは、JIRA への初回のログイン時にパスワードをメールで通知してもらう必要があります。
  • Mantis で実名を保存していないユーザーの場合、メール アドレス(ログイン名)の "@" 文字の前の部分が JIRA でのフルネームとして取得されます。
  • 外部ユーザー管理 を使用している場合、インポート プロセスでは JIRA ユーザーを作成できません。代わりに、作成の必要がある新規ユーザーの一覧が、インポーターから提供されます。インポートを開始する前に、ユーザーは外部ユーザー リポジトリでユーザーを作成する必要があります。
  • ユーザー数に制限のあるライセンス (例: パーソナル ライセンス) で、必要なユーザー数が制限を超える場合、インポートは停止されます。作成できないユーザーの一覧を示すページが表示されます。

その他のフィールド

カスタム フィールド

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


最終更新日 2018 年 9 月 5 日

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

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