How to import attachment using CSV

Usage FAQ

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

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.

JIRA 5.0 and earlier have to use HTTP protocol for CSV import, however, JIRA 5.1 and above can use FILE protocol for CSV import.

File Protocol

  1. Proceed to your JIRA Home Directory attachments directory(eg. <JIRA Home>/import/attachments/> )
  2. 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
  3. Specify the file path within the CSV file.
     

    CSV file
    Assignee, 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"
  4. 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:

Example
<JIRA_Installation>/atlassian-jira/attach/filename.png

2.Specify the URL of the 'Attachment' column within your CSV file.

Example:

CSV file
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.

Last modified on Feb 28, 2013

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.