-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Medium
-
Affects Version/s: 3.1.1
-
Component/s: Import / Export [Deprecated]
-
3.01
It looks like JIRA breaks when trying to map discrete values in CSV to values in a select-list custom field. Here is the result of trying to import the attached test.csv file with attached test.properties mappings:
[11:05:29] **************************************************************
[11:05:29] IMPORTING STARTED
[11:05:29] **************************************************************
[11:05:29]
[11:05:29] Importing with ImportBeanType: com.atlassian.jira.imports.csv.CsvDataBean
[11:05:29]
[11:05:29] --------------------------
[11:05:29] Importing of Users started
[11:05:29] Only new Users will be imported
[11:05:30] 0 users associated with import.
[11:05:30] 0 users sucessfully imported.
[11:05:30] Importing of Userss finished
[11:05:30] ----------------------------
[11:05:30] Retrieving projects...
[11:05:30]
[11:05:30] -----------------------------
[11:05:30] Importing of Projects started
[11:05:30] Only new Projects will be imported
[11:05:30] Created Project: NewProj successfully
[11:05:30] Importing of Projects finished
[11:05:30] ------------------------------
[11:05:30]
[11:05:30] -----------------------------
[11:05:30] Importing of Versions started
[11:05:30] Only new Versions will be imported
[11:05:30] Importing of Versions finished
[11:05:30] ------------------------------
[11:05:30]
[11:05:30] -------------------------------
[11:05:30] Importing of Components started
[11:05:30] Only new Components will be imported
[11:05:30] Importing of Components finished
[11:05:30] --------------------------------
[11:05:30]
[11:05:30] ---------------------------
[11:05:30] Importing of Issues started
[11:05:30] Only new Issues will be imported
[11:05:30] Importing issue number 1 : ImportIssueBean@9a42ef[Test Issue,1,<null>]
[11:05:30] FAILED: Error importing issue ImportIssueBean@9a42ef[Test Issue,1,<null>]
[11:05:30] com.atlassian.jira.external.ExternalException: Unable to create issue: ImportIssueBean@9a42ef[Test Issue,1,<null>]
at com.atlassian.jira.external.ExternalUtils.createIssue(ExternalUtils.java:268)
at com.atlassian.jira.imports.importer.impl.DefaultJiraDataImporter.importIssues(DefaultJiraDataImporter.java:379)
at com.atlassian.jira.imports.importer.impl.DefaultJiraDataImporter.doImport(DefaultJiraDataImporter.java:86)
at com.atlassian.jira.imports.importer.impl.ImporterThread.run(ImporterThread.java:16)
Caused by: java.lang.IllegalArgumentException
at com.atlassian.jira.workflow.AbstractJiraWorkflow.getLinkedStep(AbstractJiraWorkflow.java:169)
at com.atlassian.jira.external.ExternalUtils.setCurrentWorkflowStep(ExternalUtils.java:286)
at com.atlassian.jira.external.ExternalUtils.createIssue(ExternalUtils.java:262)
... 3 more
[11:05:30] Importing issue number 1 : ImportIssueBean@14b525c[Test Issue 2,1,<null>]
[11:05:30] FAILED: Error importing issue ImportIssueBean@14b525c[Test Issue 2,1,<null>]
[11:05:30] com.atlassian.jira.external.ExternalException: Unable to create issue: ImportIssueBean@14b525c[Test Issue 2,1,<null>]
at com.atlassian.jira.external.ExternalUtils.createIssue(ExternalUtils.java:268)
at com.atlassian.jira.imports.importer.impl.DefaultJiraDataImporter.importIssues(DefaultJiraDataImporter.java:379)
at com.atlassian.jira.imports.importer.impl.DefaultJiraDataImporter.doImport(DefaultJiraDataImporter.java:86)
at com.atlassian.jira.imports.importer.impl.ImporterThread.run(ImporterThread.java:16)
Caused by: java.lang.IllegalArgumentException
at com.atlassian.jira.workflow.AbstractJiraWorkflow.getLinkedStep(AbstractJiraWorkflow.java:169)
at com.atlassian.jira.external.ExternalUtils.setCurrentWorkflowStep(ExternalUtils.java:286)
at com.atlassian.jira.external.ExternalUtils.createIssue(ExternalUtils.java:262)
... 3 more
[11:05:30] 0 issues successfully imported
[11:05:30] Importing of Issues finished
[11:05:30] ----------------------------
[11:05:30] Flushing issue cache
[11:05:30] No issues need to be reindexed.
[11:05:30]
[11:05:30] **************************************************************
[11:05:30] IMPORTING FINISHED
[11:05:30] **************************************************************