CSV からのデータのインポート
Data Center は、Cloud 以外で提供しているアトラシアンの主力製品です。Server バージョンの製品はサポートを終了しました。
When migrating from another project management tool, you can export data to a comma-separated value (CSV) file and then import that file into your Jira Cloud applications. CSV files are text files representing tabulated data and are supported by most applications that handle tabulated data.
推奨データ サイズ
大規模なプロジェクトをインポートする際は、データを分割してパフォーマンスの問題を軽減し、最適なインポート速度を確保することをお勧めします。
Recommended number of work items per file | 1500 work items |
---|---|
インポートにかかる推定時間 | 約 1 時間 (これはデータと設定のサイズと複雑さによっても異なります) |
Prepare your CSV file
新しい Jira インポート エクスペリエンスを試す
Asana や Notion などのサードパーティ アプリから Jira のビジネス プロジェクトやソフトウェア プロジェクトにデータを移動するために、新しいスピーディーなインポート エクスペリエンスを利用できるようになりました。新しい Jira インポート エクスペリエンスについて読む
Jira にインポートできる CSV ファイルを作成する場合は、次の点をご確認ください。
すべてのフィールドがカンマで区切られている
すべてのコンテンツ (カンマと改行を含む) は引用符で囲まれます。
Microsoft Excel と OpenOffice を使用する場合、セル内の値を引用符で囲む必要はありません。これらのアプリケーションでは、自動でこの処理が行われます。
CSV ファイルの要件
各 CSV ファイルには、要約列を持つ見出し行が存在する必要がある
CSV ファイルのインポート ウィザードは、CSV ファイルの見出し行を使用して、ファイルの 2 行目以降のデータを Jira のフィールドにどのようにマッピングするかを決定します。
見出し行には句読点を含まないようにします (各列を区切るコンマは除く)。これを行わない場合、インポーターが正しく機能しない可能性があります。
見出し行には要約データの列が含まれている必要があります。
列/フィールドのセパレーターとしてのコンマは省略不可
たとえば、以下は有効です。
Summary, Assignee, Reporter, Work Type, Description, Priority
"Test work item", bob@example.com, bob@example.com, 1, ,
しかし、以下は無効です。
Summary, Assignee, Reporter, Work Type, Description, Priority
"Test work item", bob@example.com, bob@example.com, 1
CSV ファイルの構造
複数行にまたがるデータを取得する
CSV ファイルで二重引用符 ("
) を使用して、複数行にまたがるデータを囲みます。たとえば、Jira では以下を単一レコードを持つ有効な CSV ファイルとして扱います。
Summary, Description, Status
"Login fails", "This is on
a new line", Open
特殊文字を文字どおりに扱う
テキスト部分を二重引用符 ("
) で囲むと、その範囲の特殊文字を文字どおりに扱うように指定できます。このデータがインポートされると、これらの特殊文字は Jira のフィールド データの一部として保存されます。特殊文字の例としては、キャリッジ リターン/改行文字、コンマなどがあります。
二重引用符を文字どおり扱うには、もう 1 つ二重引用符を追加することができます。
"Clicking the ""Add"" button results in a page not found error"
...これをインポートすると、次のように Jira に保存されます。
Clicking the "Add" button results in a page not found error
複数の値を単一のフィールドに集約する
複数の値を許可する単一の Jira フィールド (修正対象バージョン、影響バージョン、コンポーネント、ラベルなど) には複数の値をインポートできます。これを行うには、同じフィールドにインポートしたいそれぞれの値について、CSV ファイルで同じ列名を指定する必要があります。指定される列名の数は、マッピングされるフィールドに集約される値の最大数と一致している必要があります。
例:
WorkType, Summary, FixVersion, FixVersion, FixVersion, Component, Component
bug, "First work item", v1, , , Component1,
bug, "Second work item", v2, , , Component1, Component2
bug, "Third work item", v1, v2, v3, Component1,
In the above example, the Component field of the second work item and the Fix Version field of the third work item will generate multiple values in the relevant field after importing.
添付ファイルをインポートする
You can attach files to work items created from your CSV file. To do this, specify the URL of your attachment in an Attachments column within your CSV file.
Assignee, Summary, Description, Attachment, Comment
bob@example.com, "Work item demonstrating the CSV attachment import", "Please check the attached image below.", "https://jira-server:8080/secure/attachment/image-name.png", "01/01/2012 10:10;<Atlassian account ID>; This comment works"
bob@example.com, "CSV attachment import with timestamp,author and filename", "Please check the attached image below.", "01/01/2012 13:10;<Atlassian account ID>;image.png;file://image-name.png", "01/01/2012 10:10;<Atlassian account ID>; This comment works"
添付ファイルの URL では HTTP と HTTPS プロトコルがサポートされ、Jira Cloud サイトがアクセス可能な場所であればどこにでも配置できます。
お使いの Atlassian アカウント ID がわからない場合は、Jira Could サイトにログインし、ページの右上隅にあるアバターをクリックして [プロファイル] に移動してください。[プロファイル] ページの URL の最後の部分がお使いの Atlassian アカウント ID です。
例: https://<yoursitename>.atlassian.net/jira/people/<Your Atlassian account ID>
親/子関係の構築
You can create a hierarchy of imported work items by specifying their parent / child relationships:
Add three columns to you CSV file with the headings: “Work item ID”, “Work type”, and “Parent”
Ensure each work item in your CSV is given a unique (sequential) number in the "Work item ID" column
Reference the unique "Work item ID" number of a work item in the “Parent” column
The parent work items must exist above the child work items in the file
詳細と必要なマッピングの例については、「 CSV インポートの親子マッピング 」を参照してください。
In the following example, the fourth work item will be a child of the second work item if you match the "Work item ID" and “Parent” fields in your CSV file to the corresponding Work item and Parent fields in Jira. Similarly, the second work item will be the child of the fifth work item as the “Work item ID” and “Parent” fields are matched.
WorkType, Summary, FixVersion, FixVersion, FixVersion, Component, Component, Work item ID, Parent, Reporter
Bug, "First work item", v1, , , Component1, , 1, , abcde-12345-fedcba
Story, "Second work item", v2, , , Component1, Component2, 2, 5, fedcb-12345-edcba
Bug, "Third work item", v1, v2, v3, Component1, , 3, , abcde-12345-fedcba
Sub-task, "Fourth work item", v1, v2, , Component2, , , 2, fedcb-12345-edcba
Epic, "Fifth work item", v1, v2, v3, Component1, , 5, , abcde-12345-fedcba
複数のプロジェクトのデータをインポートする場合、CSV ファイル内でプロジェクト横断型の親/子関係を作成できます。
Importing work items into multiple Jira projects
You can import work items from your CSV file into different Jira projects by:
CSV ファイルに見出し "プロジェクト名" および "プロジェクト キー" の 2 つの列を追加
Ensuring that every work item represented in your CSV file contains the name and key in these columns for the corresponding Jira projects
The project name and key data is the minimum Jira project data required for importing work items from a CSV file into specific Jira projects.
In this example, the first and second work items will be imported into the "Sample" project (with project key "SAMP") and the third work items will be imported into the "Example" project (with project key "EXAM") if you match the "Project Name" and "Project Key" fields in your CSV file to the corresponding Project name and Project key fields in Jira:
WorkType, Summary, Project Name, Project Key
bug, "First work item", Sample, SAMP
bug, "Second work item", Sample, SAMP
task, "Third work item", Example, EXAM
How to handle unresolved work types
For fields mapping to Resolution, Priority, and Work Type, you'll see a list with the available values in Jira. Create values that do not exist in Jira by clicking the green plus symbol.
また、ステータスにマッピングするフィールドの利用可能な値のリストも表示されます。ただし、新しいステータス値を作成することはできません。
For the Resolution, Priority, Work Type, and Status fields, you can choose the following:
Import as blank — this causes the Jira value to be blank for that field. If you are importing unresolved work items, you should create a field mapping for the Resolution field and change the value from "Unresolved" to "Import as blank".
No mapping — this attempts to import the value in the CSV file as is. Note that the import will fail if a field value is mapped to a Jira field that doesn't support that value. Fields mapping to Status and Work Type will use the default value when "Import as blank" is also selected.
作業ログ エントリのインポート
CSV ファイルには作業ログ エントリを含めることができます。例:
Summary,Worklog
Only time spent (one hour),3600
With a date and an author,2012-02-10 12:30:10;wseliga;120
With an additional comment,Testing took me 3 days;2012-02-10 12:30:10;wseliga;259200
消費時間の追跡には秒を使用する必要があることに注意してください。
複数選択カスタムフィールドへのインポート
CSV ファイルには、1 つの複数選択カスタムフィールドへの複数のエントリを含めることができます。例:
Summary,Multi Select,Multi Select,Multi Select
Sample work item,Value 1,Value 2,Value 3
これは、複数の値を持つ複数選択カスタムフィールドにデータを追加します。
カスケード選択カスタム フィールドへのインポート
次の構文を使用して、カスケード選択カスタム フィールドに値をインポートできます。
Summary, My Cascading Custom Field
Example Summary, Parent Value -> Child Value
"->" セパレーターを使用すると、 階層をインポートできます。
Updating existing work items
To update existing work items, your CSV file needs to contain a column that maps to Work Item Key. If a work item exists for a given key, it will be updated.
In this example, the second row will create work item TT-1, while the third row will set the number of votes to 7 and add two labels, and the fourth row will change the summary. In the next row, work item TT-2 will be created with two labels. The last row removes labels with the <<!clear!>> special marker:
Work item key,summary,votes,labels,labels
TT-1,Original summary,1,label1,label2
TT-1,,7,label-1,label-2
TT-1,Changed summary,,,
TT-2,Original summary 2,1,label-1,label-2
TT-2,,<<!clear!>>,<<!clear!>>,
CSV ファイルのインポート
CSV ファイルの準備ができたら、Jira 管理者として Jira Cloud サイトにログインし、インポート プロセスを開始します。
ファイルのアップロード
Choose , then System.
[インポートとエクスポート] セクションで、[外部システムのインポート] > [CSV] の順にクリックします。
新しいインポート エクスペリエンスが表示される場合は [ 旧エクスペリエンスに切り替える] を選択して、CSV ファイル インポート ウィザードに進みます。
CSV ソース ファイルを選択します。
設定ファイルがない場合や、新しい設定ファイルを作成する場合は、既存の設定ファイルの使用チェックボックスは選択しないでください。設定ファイルは、CSV ファイルの見出し行の列名と JIRA サイトのフィールド間のマッピングを指定します。CSV インポートプロセスの最後に、次回からの CSV インポートで使用できる設定ファイルが JIRA によって作成されます。
詳細設定セクションを展開してファイルのエンコード (既定では UTF-8) および CSV 区切り記号を変更します。CSV ファイルでコンマ以外の別の区切り文字を使用する場合、CSV 区切り記号フィールドでその文字を指定します。
Select Next.
プロジェクトのマッピングのセットアップ
Choose to import all work items into one (new or existing) Jira project or into multiple Jira projects. To complete this step, fill in the following:
Import to Jira Project - You can choose Select a project if you're importing all work items into a single Jira project. Start typing the name or key of a project that already exists in Jira. Or create a new one from the sidebar by selecting the plus icon (). Note that new projects require a name, key, and lead.
If you want to import work items into multiple Jira projects, choose Defined in CSV. Make sure that every work item in your CSV file includes project name and key data.新しいユーザー用のメール サフィックス - CSV ファイルで指定され、インポート中に Jira に追加される新規ユーザー用のメール アドレスのドメインを入力します。
インポート ファイルの日付形式 - CSV ファイルで使用される日付形式を指定します。Java SimpleDateFormat に準拠した構文を使用します。
Select Next.
Check if the selected project contains the same work items with the same key as the ones in the CSV file. Otherwise, Jira will import the work items to the selected project and give them new keys.
フィールドのマッピングのセットアップ
[インポート] 列で、選択した Jira プロジェクトにインポートする各 CSV フィールド (CSV ファイルの見出し行によって決定) にチェックを入れます。選択したフィールドのうち 1 つ以上に [要約] フィールドのデータが含まれている必要があります。CSV ファイルで見出し行に同じフィールド名が複数含まれている場合、CSV インポート プロセスではこれらを 1 つのフィールドに結合して でマークします。
CSV ファイルで定義したフィールド (前のステップで選択した各 CSVフィールド) に一致させたい Jira フィールドを、[Jira フィールド] 列から選択します。次の手順に進むには、サマリー フィールドを選択する必要があります。インポート プロセスで集約された CSV フィールドに対しては、複数の値をサポートする Jira フィールドのみ選択できます。
CSV ファイルのフィールドの値を Jira にインポートされる前に変更する場合、該当のフィールドの横にある [フィールドの値のマッピング] チェックボックスを選択します。
Select Next.
CSV ファイルがコメント付きの Jira Service Management プロジェクトで構成されていて [Jira フィールド] 列の [コメント本文] にマッピングされている場合は、CSV のインポート後にインポート ファイルのすべてのコメントが公開されます。
CSV フィールドと Jira フィールドのマッチングに関する詳細については、以下の「CSV データを Jira フィールドにインポートするためのヒント」をご参照ください。
フィールド値のマッピングのセットアップ
We don't support mapping company-managed work types to team-managed work types. To avoid incomplete or incorrect mappings, we've removed the ability to create a new work type or map the work type as is when you import data to a team-managed project. You'll have to map the work type to an already existing work type.
前のステップで選択した各 CSV ファイル フィールド値に Jira フィールド値を指定します。値をそのままインポートする場合は空欄のままにしておきます。
新しい優先度または解決状況の値を Jira に作成するには、該当するフィールドの横にある [Add new... (新規追加)] をクリックします。
Select Begin Import when you are ready to begin importing your CSV data into Jira.
インポート中、詳細なログをダウンロードして処理の詳細な情報を表示することができます。また、同様の設定で別の CSV ファイルをインポートする必要がある場合は、このインポートの設定を保存することができます。
ご質問がある場合や、問題が発生した場合は、アトラシアン サポートにお問い合わせください。
CSV データを Jira フィールドにインポートするためのヒント
データを CSV ファイルから特定の Jira フィールドにインポートする場合に役立つヒントを以下に示します。
Jira フィールド | インポート時の注意 |
---|---|
Project | CSV データはプロジェクト単位でインポートされます。既存の Jira プロジェクトを指定できます。指定しない場合、インポート時にインポーターが自動的に新規プロジェクトを作成します。 |
要約 | これは唯一の必須フィールドです。 |
Work Item Key | You can set the work item key for an imported work item. If a work item with a given key already exists in Jira, it will be updated instead. |
Component | You can import work items with multiple components by entering each component in a separate column. |
影響バージョン | You can import work items with multiple "Affects Version" values by entering each version in a separate column. |
Fix Version (修正バージョン) | You can import work items with multiple "Fix Version" values by entering each version in a separate column. |
コメント本文 | You can import work items with multiple comments by entering each comment in a separate column. |
作成日 | CSV インポート ウィザードの 2 番目の手順で指定した日付形式を使用してください。 |
更新日 | CSV インポート ウィザードの 2 番目の手順で指定した日付形式を使用してください。 |
期限 | CSV インポート ウィザードの 2 番目の手順で指定した日付形式を使用してください。 |
Work Type | If not specified in your CSV file, imported work items will be given the default (i.e. first) Work Type as specified in your Jira site. |
Work item rank | Work item rank will not be retained, so any manual ranking of software projectboards will be lost. |
ラベル | You can import work items with multiple labels by entering each label in a separate column. |
優先度 | If not specified in your CSV file, imported work items will be given the default (i.e. first) Priority as specified in your Jira site. You can also create new Jira values on-the-fly during the import process. |
ソリューション | If not specified in your CSV file, imported work items will be given the default (i.e. first) Resolution as specified in your Jira site. You can also create new Jira values on-the-fly during the import process. See How to handle unresolved work items for helpful tips. |
ステータス | Can only be mapped to existing workflow statuses in Jira. If not specified in your CSV file, imported work items will be given the default (i.e. first) Status as specified in your Jira system. |
初期見積 (Original Estimate) | このフィールドの値は、秒数で指定する必要があります。 |
残余見積 (Remaining Estimate) | このフィールドの値は、秒数で指定する必要があります。 |
所要時間 (Time Spent) | このフィールドの値は、秒数で指定する必要があります。 |
ユーザー | サポート対象のユーザー タイプ
ユーザーを作成 担当者または報告者フィールドの値として、インポーターに Jira ユーザーを自動で作成させることも可能です。
ユーザーの更新 Jira Service Management のポータルのみの顧客のデータの挙動は、ほかのユーザー アカウント データとは異なります。ポータルのみの顧客のデータがインポート データと宛先サイトとで異なる場合、宛先サイトのデータが使用されます。 |
ウォッチャー | If you have users specified as Watchers in your CSV file, and these users do not exist in Jira, they will not be imported. A user must be available in Jira before you can import them as a watcher on a specific work items. |
その他のフィールド | その他のフィールドをインポートする場合は、特定の Jira カスタム フィールドへのマッピングを行うことができます。Jira にカスタム フィールドが存在しない場合、インポーターによってカスタム フィールドが自動的に作成されます。カスタム フィールドが日付フィールドの場合、CSV インポーター ウィザードの 2 番目の手順で指定した日付形式を使用してください。 |
この内容はお役に立ちましたか?