JIRA issues import - Problem with comment date parseing

Hello! I'm using CSV import to import issues with comments. Here is an example of the comment format I'm using:

11/27/2012 01:01:01; user_name; Screen shot showing <init> elements in generated HTML

And it adds the comment under my name and current date, not the set date and user. The log shows this error. Please help!

2013-08-22 14:16:24,582 WARN - Exception occurred parsing comment. Some values may not be set
java.text.ParseException: Unparseable date: "11/27/2012 01:01:01"
	at java.text.DateFormat.parse(Unknown Source)
	at com.atlassian.jira.plugins.importer.imports.csv.CsvConfigBean.parseDate(CsvConfigBean.java:161)
	at com.atlassian.jira.plugins.importer.imports.csv.CsvConfigBean.parseDate(CsvConfigBean.java:934)
	at com.atlassian.jira.plugins.importer.imports.csv.mappers.SimpleCommentMapper.parseComment(SimpleCommentMapper.java:67)
	at com.atlassian.jira.plugins.importer.imports.csv.mappers.SimpleCommentMapper.buildFromMultiMap(SimpleCommentMapper.java:48)
	at com.atlassian.jira.plugins.importer.imports.csv.CsvDataBean.populateCache(CsvDataBean.java:252)
	at com.atlassian.jira.plugins.importer.imports.csv.CsvDataBean.refreshCache(CsvDataBean.java:177)
	at com.atlassian.jira.plugins.importer.imports.csv.CsvDataBean.getAllProjects(CsvDataBean.java:165)
	at com.atlassian.jira.plugins.importer.imports.csv.CsvDataBean.getSelectedProjects(CsvDataBean.java:171)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.preImport(DefaultJiraDataImporter.java:548)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.doImport(DefaultJiraDataImporter.java:319)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:26)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:15)
	at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:365)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at com.atlassian.jira.task.ForkedThreadExecutor$ForkedRunnableDecorator.run(ForkedThreadExecutor.java:249)
	at java.lang.Thread.run(Unknown Source)
2013-08-22 14:16:24,582 WARN - Exception occurred parsing comment. Some values may not be set
java.text.ParseException: Unparseable date: "11/27/2012 01:01:01"
	at java.text.DateFormat.parse(Unknown Source)
	at com.atlassian.jira.plugins.importer.imports.csv.CsvConfigBean.parseDate(CsvConfigBean.java:161)
	at com.atlassian.jira.plugins.importer.imports.csv.CsvConfigBean.parseDate(CsvConfigBean.java:934)
	at com.atlassian.jira.plugins.importer.imports.csv.mappers.SimpleCommentMapper.parseComment(SimpleCommentMapper.java:67)
	at com.atlassian.jira.plugins.importer.imports.csv.mappers.SimpleCommentMapper.buildFromMultiMap(SimpleCommentMapper.java:48)
	at com.atlassian.jira.plugins.importer.imports.csv.CsvDataBean.populateCache(CsvDataBean.java:252)
	at com.atlassian.jira.plugins.importer.imports.csv.CsvDataBean.refreshCache(CsvDataBean.java:177)
	at com.atlassian.jira.plugins.importer.imports.csv.CsvDataBean.getAllProjects(CsvDataBean.java:165)
	at com.atlassian.jira.plugins.importer.imports.csv.CsvDataBean.getSelectedProjects(CsvDataBean.java:171)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.preImport(DefaultJiraDataImporter.java:548)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.doImport(DefaultJiraDataImporter.java:319)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:26)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:15)
	at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:365)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at com.atlassian.jira.task.ForkedThreadExecutor$ForkedRunnableDecorator.run(ForkedThreadExecutor.java:249)
	at java.lang.Thread.run(Unknown Source)

1 answer

1 accepted

Accepted Answer
0 votes

Hi.

You asked the duplicated question. I answered another one.

https://answers.atlassian.com/questions/203935/jira-csv-import-issue-with-comment-import

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

36 views 0 2
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