Error importing Pivotal project

Desislav Kamenov November 7, 2012

I'm using Jira v4.4#649-r158309

GreenHopper is v5.7.1

I've updated my Jira Import plugin to the latest version (3.5.3). Additional related plugins com.atlassian.jira.plugins.jira-workflow-designer - v.2.0.0, com.atlassian.jira.plugin.workflow.blockinglinks - v.1.0.0 , com.innovalog.jmwe.jira-misc-workflow-extensions - v.2.4.1

I want to import an existing project from Pivotal to Jira using the import plugin.

I started doing it as described in atlassin's confluence but when the import process starts I get to following error

2012-11-08 12:53:42,751 INFO - Import started by xxxxx using com.atlassian.jira.plugins.importer.imports.pivotal.PivotalDataBean
2012-11-08 12:53:42,754 INFO - ------------------------------
2012-11-08 12:53:42,754 INFO - Importing: Users
2012-11-08 12:53:42,754 INFO - ------------------------------
2012-11-08 12:53:42,754 INFO - Only new items will be imported
2012-11-08 12:53:44,940 INFO - 7 users associated with import.
2012-11-08 12:53:44,955 INFO - ------------------------------
2012-11-08 12:53:44,956 INFO - Finished Importing : Users
2012-11-08 12:53:44,956 INFO - ------------------------------
2012-11-08 12:53:44,956 INFO - 0 users successfully created.
2012-11-08 12:53:44,956 INFO - Retrieving custom fields...
2012-11-08 12:53:44,956 INFO - Retrieving projects...
2012-11-08 12:53:45,288 ERROR - Unexpected failure occurred. Importer will stop immediately. Data maybe in an unstable state
java.lang.Exception: Unable to import Project ExternalProject[jiraId=<null>,id=428049,externalName=AAAAA,name=BBBBBB,key=KKK,url=<null>,lead=xxxxx.yyyyyy,description=<null>,projectCategoryName=<null>,assigneeType=3,workflowSchemeName=<null>]
	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.importProject(DefaultJiraDataImporter.java:580)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.doImport(DefaultJiraDataImporter.java:279)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:25)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:14)
	at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:359)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at com.atlassian.multitenant.impl.DefaultMultiTenantManager.runForTenant(DefaultMultiTenantManager.java:61)
	at com.atlassian.multitenant.juc.MultiTenantExecutors$WrappedRunnable.run(MultiTenantExecutors.java:160)
	at com.atlassian.jira.task.ForkedThreadExecutor$ForkedRunnableDecorator.run(ForkedThreadExecutor.java:249)
	at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.RuntimeException: Error setting up Pivotal scheme for project KKK
	at com.atlassian.jira.plugins.importer.imports.pivotal.PivotalDataBean.afterProjectCreated(PivotalDataBean.java:342)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.importProject(DefaultJiraDataImporter.java:576)
	... 13 more
Caused by: java.lang.RuntimeException: Error adding status IceBox
	at com.atlassian.jira.plugins.importer.imports.pivotal.PivotalSchemeManager.getPTStatusNameToIdMapping(PivotalSchemeManager.java:317)
	at com.atlassian.jira.plugins.importer.imports.pivotal.PivotalSchemeManager.loadPTWorkflow(PivotalSchemeManager.java:266)
	at com.atlassian.jira.plugins.importer.imports.pivotal.PivotalSchemeManager.getPTWorkflow(PivotalSchemeManager.java:261)
	at com.atlassian.jira.plugins.importer.imports.pivotal.PivotalSchemeManager.getPTWorkflowScheme(PivotalSchemeManager.java:238)
	at com.atlassian.jira.plugins.importer.imports.pivotal.PivotalSchemeManager.assignPTWorkflowScheme(PivotalSchemeManager.java:230)
	at com.atlassian.jira.plugins.importer.imports.pivotal.PivotalSchemeManager.setPTSchemesForProject(PivotalSchemeManager.java:167)
	at com.atlassian.jira.plugins.importer.imports.pivotal.PivotalDataBean.afterProjectCreated(PivotalDataBean.java:340)
	... 14 more
2012-11-08 12:53:45,308 INFO - No issues need to be reindexed.

5 answers

1 accepted

0 votes
Answer accepted
Desislav Kamenov November 12, 2012

As it is a bit difficult to upgrade our jira instance quickly, i will play a bit with a CSV export from pivotal and import it. I already tried it and it imports the project with small issues.

1 vote
John Chin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 7, 2012

Hi Desislav,

There is a KB for this error, please refer to the following link.

Hope it helps.

Cheers,

John Chin

Desislav Kamenov November 8, 2012

The new project is being created but there are no PT workflow or issue type schemes created. Also this is my first Pivotal project to be imported in Jira.

0 votes
Wojciech Seliga
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 11, 2012

Hey, you are running on a quite ancient version of JIRA Importers Plugin. I know that newer versions require JIRA 5.0+. Do you have a chance to run it on a newer version of JIRA?

Honestly it's quite possible that this bug has been fixed since then.

0 votes
Desislav Kamenov November 11, 2012

added in description

0 votes
Wojciech Seliga
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 8, 2012

1) which version of GreenHopper do you use?

2) which exactly version of JIRA Importers Plugin do you use? The latest version works only with JIRA 5.0.2 and newer.

3) do you have some other plugins installed in this system?

4) do you have any additional information in JIRA log file? (<JIRA home>/logs/atlassian-jira.log)

Suggest an answer

Log in or Sign up to answer