Jira で削除されたカスタム フィールドを復元する方法

お困りですか?

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

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

    

要約

この記事では、誤って削除したカスタム フィールド データを復元するための手順について説明します。データの復元先として、中間インスタンスを立ち上げるか、既存の優先度が低い環境を活用する必要する必要があります。

カスタム フィールド データを含む完全なデータベース バックアップか、削除されたカスタム フィールド データを含む完全な XML バックアップを用意する必要があります。


環境

This article is applicable to all versions of Jira 7.x and 8.x, and Service Management 3.x and 4.x.


ソリューション

1) Create a new instance of Jira

カスタム フィールドのデータが削除される前に取得されたデータベース バックアップまたは XML バックアップを復元する必要があります。また、復元を行うときには「Jira 用にテスト環境を作成する」のガイドラインに従うことをおすすめします。データを完全に復元したら、データの評価に移ります。以降は、このサーバーをソースと呼びます。カスタム フィールドが削除された Jira をターゲットと呼びます。

2) Create a new custom field on the target with the same name as the deleted field. 

適切なコンテキスト等を作成するために、ソース インスタンスをガイドとして使用できます。これは非常に重要な手順です。これが存在することで、以降で値をマッピングできます。 

3) Find the issues that have the custom field populated. 

  1. ソース サーバーにログインします。
  2. 削除されたカスタム フィールドの値を持っていたすべての課題を見つける JQL 検索を実行します。 

    <name of custom field> is not empty

4) Export the results to a CSV. 

次のフィールドのみが必要です。 

  • 課題キー
  • 要約
  • ターゲットから削除されたカスタム フィールド

ターゲット インスタンスへの CSV インポートを行い、既存の課題をソース インスタンスのカスタム フィールド データで更新するため、これらの 3 つのフィールドのみが必要です。 

Only 1000 issues can be retrieved and exported to CSV at one time.  If you have more than 1000 issues that need to have a custom field restored, this step will need to be done in batches of up to 1000 until all issues have been exported.  A common way to break the results up into batches is to use the created date field or some other field on the issue to break the data into chunks of 1000 or less issues for each retrieval/CSV export.  


5) Sort and break up the CSV by issue key.

プロジェクト単位でのインポートを行うため、これによってターゲット インスタンスへのインポートを簡単に行えます。たとえば合計で 5 個のプロジェクトがある場合、これをインポート用に 5 個の CSV ファイルに分割します。 

簡単に使用できるようにプロジェクトでの分割を行いましたが、分割せずn CSV 内でプロジェクトを定義することもできます。詳細については「CSV からのデータのインポート」をご確認ください。 

6) Perform a CSV import into the target instance.

  1. Navigate to the external import page in Jira via Settings > System > External System Import.
  2. CSV を選択します。
  3. ソース インスタンスからエクスポートした CSV ファイルを参照します。 
  4. 値のインポート先のプロジェクトを選択します。 
  5. 次のフィールドをマッピングします。
  6. [インポートを開始] を選択します。 
  7. 各プロジェクトでプロセスを繰り返します。 

このプロセスが完了すると、CSV で定義された課題でカスタム フィールド値が更新されます。 


最終更新日: 2023 年 1 月 3 日

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

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