How to import attachment using CSV
CSV import commonly used for importing mass of issues and some issues comes with attachments. In JIRA version 5.0 and earlier, it is not possible to use FILE protocol to include the attachment. HTTP protocol is the only choice to import attachment to JIRA through CSV.
File Protocol
- Proceed to your JIRA Home Directory attachments directory(eg. <JIRA Home>/import/attachments/> )
Create a folder named csvimport and save your attachment within it. In the below example, a test.JPG image file was added to the csvimport directory:
Example<JIRA_Home>/import/attachments/csvimport/test.JPG
Specify the file path within the CSV file.
CSV fileAssignee, Summary, Description, Attachment, Comment Admin, "Issue demonstrating the CSV attachment import", "Please check the attached image below.", file://csvimport/test.JPG, "01/01/2012 10:10;Admin; This comment works"
- Proceed with using the CSV file import wizard.
HTTP Protocol
1.Save the attachment (eg. filename.png) inside the following directory <JIRA_installation>/atlassian-jira/folder/
Example:
<JIRA_Installation>/atlassian-jira/attach/filename.png
2.Specify the URL of the 'Attachment' column within your CSV file.
Example:
Assignee, Summary, Description, Attachment, Comment
Admin, "Issue demonstrating the CSV attachment import", "Please check the attached image below.", http://jira-server:8080/attach/filename.png, "01/01/2012 10:10;Admin; This comment works"
3.Proceed with using the CSV file import wizard.