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 Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

771 views 2 19
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