CSV インポーターで作業項目を作成する
Comma-separated value (CSV) files are text files that represent tabulated data, and are supported by most systems that handle tabulated data, such as spreadsheets and databases. The CSV importer allows you to import data from external systems that can export their data in a tabulated format. It also allows you to create your own CSV file to perform bulk work item creation and updates.
You will need the Create work item project permission and the Make bulk changes global permission for the projects you want to create work items in. Note that your administrator can perform more advanced bulk imports. If you're an administrator, check out Importing and exporting data for more information. Users without administrator permissions will be able to import 250 work items per CSV file.
The bulk work item creation option for CSV imports can't map work items with a parent-child hierarchy relationship (for example, Initiative > Epic > Story > Subtask).
To map hierarchies, you must use a CSV External System Import option instead. Refer to Import data using a CSV file and CSV import parent-child mapping for details.
CSV ファイルを準備する
You can base the structure of your CSV file off the default Microsoft Excel CSV format. Fields should be separated by commas, and any content that must be treated literally (such as commas, new lines, and carriage returns) should be enclosed in quotes. Microsoft Excel and OpenOffice automatically quote values in cells, so there is no need to quote these values manually.
CSV ファイルの要件
CSV files must be well-formed.
Each CSV file must possess a heading row with a summary column. The header row is used to determine how to map data from the CSV file's 2nd row and beyond to fields in your project's work items. The header row should avoid containing any punctuation (apart from the commas separating each column) or the importer may not work correctly.
空の列値に対して、コンマは省略できません。たとえば、次に示す 2 番目のスニペットでは、空の "説明" フィールドと "優先度" フィールドのコンマが省略されていますが、これは許可されていません。
以下は有効な例です。
Summary, Assignee, Reporter, Work Type, Description, Priority
"Test work item", bob@example.com, bob@example.com, Task, ,次の例は有効ではありません。
Summary, Assignee, Reporter, Work Type, Description, Priority
"Test work item", bob@example.com, bob@example.com, 1CSV ファイルのデータを構造化する方法
複数行にまたがるデータ
複数行にまたがるデータを取り込むには、CSV ファイルで二重引用符 (") を使用します。たとえば、インポート時に、Jira は以下を単一レコードの有効な CSV ファイルとして扱います。
Summary, Description, Status
"Login fails", "This is on
a new line", Open文字通りに扱われる必要がある特殊文字
テキスト部分を二重引用符 (") で囲むと、その範囲の特殊文字を文字どおりに扱うように指定できます。このデータがインポートされると、これらの特殊文字は Jira のフィールド データの一部として保存されます。特殊文字の例としては、キャリッジ リターン / 改行文字 (上記に例示)、コンマなどがあります。
二重引用符を文字どおり扱うようにするには、もう1つ二重引用符を追加して「エスケープ」します。したがって、CSV 値は次のようになります。
"Selecting the ""Add"" button results in a page not found error"
Once imported, will be stored in Jira as:
Selecting the "Add" button results in a page not found error
Aggregating multiple values into a single field
You can import multiple values into a field that accepts multiple values (e.g. Fix (for) Version, Affects Version, Component, Labels). To do this, your CSV file must specify the same column name for each value you wish to aggregate into the mapped field. The number of column names specified must match the maximum number of values to be aggregated into the mapped field. For example:
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 appropriate fields upon import.
Please be aware that only a limited number of fields support multiple values. The CSV importer will not allow you to import aggregated data into fields that only support a single value.
添付ファイル
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;Admin; 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;bob@example.com;image.png;file://image-name.png", "01/01/2012 10:10;Admin; This comment works"添付ファイルの URL は HTTP と HTTPS プロトコルをサポートしており、JIRA インスタンスが必ずアクセスできる任意の場所を設定できます。
Importing data into multiple projects
You can import work items from your CSV file into different projects through a CSV file import. To do this, add two columns to your CSV file with the "Project Name" and "Project Key" headings.
Make sure that every work item in your CSV file has a project name and project key in the relevant column. The project name and project key are the minimum project data required for importing work items from a CSV file into specific projects.
In the following example, the first and second work items will be imported into the 'Sample' project (with project key 'SAMP'), while the third work item will be imported into the 'Example' project (with project key 'EXAM'):
WorkType, Summary, Project Name, Project Key
bug, "First work item", Sample, SAMP
bug, "Second work item", Sample, SAMP
task, "Third work item", Example, EXAM作業ログ エントリー
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 ファイルに複数のエントリーを含めて、複数の値を持つ複数選択カスタム フィールドにデータを追加することができます。例:
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 ValueSelect List (cascading) custom fields cannot be imported using this method. You can track the suggestion here: JRACLOUD-34202. Instead, Jira administrators can use the method in Settings (), then System, then External System Import to import Select List (cascading) fields.
CSV ファイルインポート ウィザードを実行する
Select Filters in the sidebar, then select Search work items.
Select More ( ••• ), then Import work items from CSV.
インポートする CSV ソース ファイルを選択します。[設定ファイルがない場合または新しい設定ファイルを作成する場合] を選択し、[既存の設定ファイルを使用する] オプションは選択しないようにします。設定ファイルは、CSV ファイルの見出し行の列名と Jira インストールのフィールド間のマッピングを指定します。インポート プロセスの最後に設定ファイルを作成するオプションがあります。
Select Next and fill in the required information. If your CSV file uses a different separator character other than a comma, specify that character in the CSV Delimiter field. If the separator is a tab, this can be entered using the format "/t".
Select Next and map the column headers of your CSV file to the fields in your selected project. If you want to select specific Jira field values to map specific CSV values to, check the Map field value option. You must map a CSV field to the summary field, as all work items created must have a summary.
Select Next one more time and select which CSV field values selected in the previous step you want to map to specific field values. For example, you might want to map the CSV field value of "Feature Request" to the Jira work type field value "New Feature".
Select Begin Import when you are ready to begin importing your CSV data into Jira. If you want to check for any errors or warnings, click Validate before beginning your import. If you want to import another CSV file with similar settings (e.g. similar field value mappings), you can save the configuration by downloaded a CSV configuration file.
注意点
値を現状のままインポートしたい場合は、フィールド値のマッピング時にフィールドを空欄のままにしておくか、フィールド内のコンテンツを消去します。
インポートに問題が発生したときや、プロセスについて詳細が必要な場合は、詳細ログをダウンロードできます。
CSV データを Jira フィールドにインポートするためのヒント
Below are some helpful tips when importing data from your CSV file into specific fields:
フィールド | ヒント |
|---|---|
Project | CSV データはプロジェクト単位でインポートされます。対象として既存の JIRA プロジェクトを指定できますが、指定しなくても、インポート時にインポーターが自動的に新規プロジェクトを作成します。 |
要約 | これは唯一の必須フィールドです。 |
コンポーネント | 個別の列に各コンポーネントを入力することで、複数のコンポーネントを持つ作業項目をインポートできます。 |
影響バージョン | You can import work items with multiple 'Affects Versions' by entering each version in a separate column. |
修正バージョン | You can import work items with multiple 'Fix Versions' by entering each version in a separate column. |
コメント本文 | You can import work items with multiple comments by entering each comment in separate columns with the same header name. |
期限 | CSV インポート ウィザードの 2 番目の手順で指定した日付形式を使用してください。 |
作業タイプ | 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 instance. For more information, see Defining work type field values. インポートの過程で、まとめて新しい値を作成することもできます。 |
ラベル | 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 instance. インポートの過程で、まとめて新しい値を作成することもできます。 |
初期見積 (Original Estimate) | このフィールドの値は、秒数で指定する必要があります。 |
残余見積 (Remaining Estimate) | このフィールドの値は、秒数で指定する必要があります。 |
所要時間 (Time Spent) | このフィールドの値は、秒数で指定する必要があります。 |
ユーザー | ユーザーを作成 ユーザー タイプのすべてのシステム フィールドで、以下をサポートしています。
担当者または報告者フィールドの値として、インポーターに Jira ユーザーを自動で作成させることも可能です。
ユーザーの更新 Portal-only customer data in Jira Service Management behaves differently than other user accounts data. If the portal-only customer data is different in the import and the destination, then we use the destination data. |
必須フィールド | When importing to projects with mandatory fields, you must include the field in the *Create work item* screen associated to the work type being used. For more information, see Specifying field behavior. |
その他のフィールド | その他のフィールドをインポートする場合は、特定の Jira カスタムフィールド へのマッピングを行うことができます。JIRA にカスタムフィールドがまだ存在していない場合、インポーターは自動的にカスタムフィールドを作成します。カスタムフィールが日付フィールドの場合、CSV インポーター ウィザードの 2 番目の手順で指定した日付形式を使用してください。 |
If you have any questions or encounter any problems during the CSV import process, please contact Atlassian support.
この内容はお役に立ちましたか?