CSV import attachment syntax (Jira 5.24)

Hi, I have a line in an import file that has the attachment field like so:

<colgroup><col width="64"></colgroup>

23/Jan/2013 05:24 PM;bryank;text/plain;file://FOO-35941/FOO.20130120192339.txt

The update complete, with the correct author and timestamp -- but the name of the file is 'text-plain' -- and not 'FOO.20130120192339.txt'

I tried renaming the file, moving the file directly to the import directory, etc... but the same issue persists.

Is this a syntax issue, or something else? Any tips much appreciated.

4 answers

1 accepted

It should be (remove text/plain; as we don't support setting MIME content type using CSV):

<colgroup><col width="64"></colgroup>

23/Jan/2013 05:24 PM;bryank;file://FOO-35941/FOO.20130120192339.txt

weird -- I did that, but then I get an error saying that the user "23/Jan/2013 05:24 PM not found. attaching to issue with currently logged in user instead"

The import then completes, and the name of the imported file is my username.

I bet the date format you specified during the wizard doesn't match the date format used here.

okay -- last question -- is there a way to add a timestamp/author via http method?

What do you mean via http method? You can put "23/Jan/2013 05:24 PM;bryank;http://some.url/to.attachment" and it will also work.

Oops -- must have been a an error in my document. Thanks for the help!

I seem to be having a similar issue, however I appear to be using the correct format (At least it's working for comments.) Any thoughts on why the same format as comments doesn't work for attachments?

Okay, Apparently there's a fourth parameter I needed. Date;Author;filename;URL to file.

FYI I'm using OAD.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,975 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot