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
Community showcase
Published Nov 29, 2018 in Jira

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,085 views 0 8
Read article

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