How can I import from CSV with carriage return and line feed in a text field?

I need to import data from a CSV file into a project. One import field is the description field which can contain carriage return and line feed, but this will break the import.

I thought of replacing the CR+LF with a some text token like <<CRLF>> and then replacing it after the import using direct SQL on the database.

Is there some better way? Surely this is a common problem?

1 answer

JIRA Command Line Interface supports importing CSV data - see Import JIRA issues. Double quoted fields can contain multiple lines. More generally, it imports CSV conforming with The Comma Separated Value (CSV) File Format .

Thanks a lot, now I can import multi-line fields, and add attachments, too.

Came here to find a solution to the same problem that tilmann.brenk mentions above in OP, but the first link in Bob Swift's answer does not take me to "import jira issues" information. Can anyone provide an update? What is the trick to importing descriptions in a CSV file that have line breaks and would like for them to be imported as line breaks in JIRA description field? Thanks

I updated the link. Atlassian discontinued plugin studio quite some time ago, so all those links usually have some other location now :(. Let me know if that link doesn't answer your question.

Thanks Bob. I eventually found my answer here: Thanks again.

Like 3 people like this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Jira

Updates to give you visibility into what's coming in Jira Server and Data Center

Hello, Community! My name is Gosia and I'm a Product Manager on Jira Server and Data Center here at Atlassian. Since 2002 when we launched our public issue tracker, jira.atlass...

637 views 1 15
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