It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

CSV import of subtasks failing

JT Nov 25, 2013

I am attempting to import issues using a csv file. In the file I have Bugs, Stories, and subtasks.

The bugs and stories import correctly, the subtasks are throwing an error. I have both the Issue ID and the Parent ID on the csv file.

The import file looks like this:

IssueID Issue Type Parent Issue ID

US2482 Story

DE722 Bug

(blank) Subtask US2482

The configuration file has this:

"field.Issue ID" : "issue-id",

"field.Parent issue ID" : "subtask-parent-id",

Is appears the subtask is importing, but fails (null point exception) on creating the link to the Story

2013-11-25 18:46:14,253 INFO - Only new items will be imported
2013-11-25 18:46:14,254 INFO - Importing issue: ExternalIssue{externalId=US2482, summary=OUT OF SCOPE - View of Outstanding Cases (Future State), issueType=7}
2013-11-25 18:46:14,442 WARN - Custom field 'Story Points' has multiple configuration schemes. Importer is unable to extend custom field context automatically.
2013-11-25 18:46:14,489 INFO - Importing issue: ExternalIssue{externalId=DE722, summary=US2457 - Contact - Error on warning logic for New Contact entry, issueType=1}
2013-11-25 18:46:14,624 INFO - Importing issue: ExternalIssue{externalId=autoid-332276842025079510, summary=SFDC Configuration, issueType=5}
2013-11-25 18:46:14,761 INFO - Importing issue: ExternalIssue{externalId=DE716, summary=US 2457 - CONTACT - First Name is not Required Field, issueType=33}
2013-11-25 18:46:14,908 INFO - ------------------------------
2013-11-25 18:46:14,908 INFO - Finished Importing : Issues
2013-11-25 18:46:14,908 INFO - ------------------------------
2013-11-25 18:46:14,908 ERROR - Unexpected failure occurred. Importer will stop immediately. Data maybe in an unstable state
java.lang.NullPointerException
	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.addOptions(DefaultJiraDataImporter.java:1559)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.importExternalCustomFields(DefaultJiraDataImporter.java:1199)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.createIssue(DefaultJiraDataImporter.java:954)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.importIssues(DefaultJiraDataImporter.java:837)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.doImport(DefaultJiraDataImporter.java:422)
	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:374)
	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.jira.task.ForkedThreadExecutor$ForkedRunnableDecorator.run(ForkedThreadExecutor.java:250)
	at java.lang.Thread.run(Thread.java:722)

How do I resolve linking issue for parent/child?

3 answers

1 accepted

0 votes
Answer accepted
JT Dec 06, 2013

Resolved locally. csv file cantained a poorly formated field.

0 votes
rambabu patina Nov 25, 2013

Hi,

It's currently not supported by JIRA Importers Plugin. There is an improvement request for it at https://studio.atlassian.com/browse/JIM-622

Your comment and/or vote there would definitely help prioritize it accordingly.

Thanks,

Patina

JT Nov 25, 2013

Patina,

The issue you reference talks about importing subtask to existing issues in JIRA. I am trying to import both the story and the subtask at the same time.

0 votes
rambabu patina Nov 28, 2013

Hi Jeanne,

Please send me the csv file. And check weather any mandatory field is there in your issue screens.

thanks,

Patina

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Jira

Try Jira Cloud for Outlook: Organize your work without leaving your inbox

Hi Atlassian community, My name is Max and I work on the product integration team at Atlassian. I am pleased to announce the early access program for the Jira Cloud add-in for Outlook. This add-in...

838 views 0 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you