How to bulk update issues as External System Import does?

Hi everyone,

I need to update some field of a set of issues that are listed into a CSV or XLS file.

I am used to importing using External System Import option but, how could I bulk update from a file as External System Import does?

 

Thank you in advance,

 

Javier.

1 answer

0 vote

I'm not sure what the question here is.  You say you're used to importing, and you want to bulk update as the import does, so you've answered your own question already?

Ok, Nic, you are right, I am sorry for my poor English. I will try to explain better. Currently I am using External System Import to make massive creation of new issues. I would like to make massive issue modifications instead of massive issue creation from a external file. That is, I would like to modify fields of existing issues instead of creating new issues. Thank you for your answer, Nic. Javier.

Ah, good, I thought that was what you meant, but I could not be sure and didn't want to guess. In the import file, if you specify a column for "issue key" and map it to key, then the import process will take the file as updates to existing issues.

Hi again, Nic. I have proceed with your instructions. Unfortunately, an error has been returned "Status 'Passed' does not have a linked step in the 'CIS FRANCE CIS Anomalies V2' workflow. Please map to a different status." It seems that (while importing) it is selecting a different workflow than expected for that issuetype. It should not, as an issuekey is provided, it should apply the current workflow for that issuetype.

If you are updating the status of an existing issue, then you must map the status to one that exists in the workflow for the existing issuetype, and I suspect there has to be a transition between the current status and the new one.

Thank you, Nic. I have checked the actual status of the issues and I have resumed the import process using destination statuses that are compatible with the workflow but the error still appears. The most strange thing is that the name of the workflow that appears in the log (CIS FRANCE CIS ANOMALIES V2) is not the workflow that is currently assigned to the issues that I am trying to import (I have checked the issuekey, issuetype and the workflow scheme that have associated). Let me provide the log: 2014-10-22 10:31:46,666 INFO - Import started by admin using com.atlassian.jira.plugins.importer.imports.csv.CsvDataBean 2014-10-22 10:31:46,666 INFO - ------------------------------ 2014-10-22 10:31:46,666 INFO - Importing: Users 2014-10-22 10:31:46,666 INFO - ------------------------------ 2014-10-22 10:31:46,666 INFO - Only new items will be imported 2014-10-22 10:31:46,666 INFO - 0 users associated with import. 2014-10-22 10:31:46,666 INFO - ------------------------------ 2014-10-22 10:31:46,666 INFO - Finished Importing : Users 2014-10-22 10:31:46,666 INFO - ------------------------------ 2014-10-22 10:31:46,666 INFO - 0 users successfully created. 2014-10-22 10:31:46,666 INFO - Retrieving projects... 2014-10-22 10:31:46,666 INFO - Project ExternalProject[jiraId=<null>,id=<null>,externalName=<null>,name=<null>,key=AXACISPA,url=<null>,lead=<null>,description=<null>,projectCategoryName=<null>,avatarUrl=<null>,assigneeType=<null>,versions=<null>,components=<null>,issues=<null>,workflowSchemeName=<null>] already exists. Not imported 2014-10-22 10:31:46,666 INFO - ------------------------------ 2014-10-22 10:31:46,666 INFO - Importing: Versions 2014-10-22 10:31:46,666 INFO - ------------------------------ 2014-10-22 10:31:46,666 INFO - Only new items will be imported 2014-10-22 10:31:46,666 INFO - ------------------------------ 2014-10-22 10:31:46,666 INFO - Finished Importing : Versions 2014-10-22 10:31:46,666 INFO - ------------------------------ 2014-10-22 10:31:46,666 INFO - ------------------------------ 2014-10-22 10:31:46,666 INFO - Importing: Components 2014-10-22 10:31:46,666 INFO - ------------------------------ 2014-10-22 10:31:46,666 INFO - Only new items will be imported 2014-10-22 10:31:46,666 INFO - ------------------------------ 2014-10-22 10:31:46,666 INFO - Finished Importing : Components 2014-10-22 10:31:46,666 INFO - ------------------------------ 2014-10-22 10:31:46,666 INFO - Retrieving custom fields... 2014-10-22 10:31:46,666 INFO - ------------------------------ 2014-10-22 10:31:46,666 INFO - Importing: Issues 2014-10-22 10:31:46,666 INFO - ------------------------------ 2014-10-22 10:31:46,666 INFO - Only new items will be imported 2014-10-22 10:34:35,398 INFO - Importing issue: ExternalIssue{externalId=autoid-6503892956557382688, summary=KDT_CB_S_CT_51-OA, issueType=null} 2014-10-22 10:34:35,445 ERROR - Error importing issue ExternalIssue{externalId=autoid-6503892956557382688, summary=KDT_CB_S_CT_51-OA, issueType=null} com.atlassian.jira.plugins.importer.external.ExternalException: Unable to create issue: AXACISPA-124518 at com.atlassian.jira.plugins.importer.imports.importer.impl.ExternalUtils.updateIssue(ExternalUtils.java:717) at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.createIssue(DefaultJiraDataImporter.java:851) at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.importIssues(DefaultJiraDataImporter.java:762) at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.doImport(DefaultJiraDataImporter.java:354) at com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:27) at com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:16) at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:366) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) 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:662) Caused by: com.atlassian.jira.plugins.importer.external.ExternalException: Status 'Closed' does not have a linked step in the 'CIS FRANCE CIS Anomalies V2' workflow. Please map to a different status. at com.atlassian.jira.plugins.importer.imports.importer.impl.ExternalUtils.checkStatus(ExternalUtils.java:187) at com.atlassian.jira.plugins.importer.imports.importer.impl.ExternalUtils.updateIssue(ExternalUtils.java:707) ... 15 more 2014-10-22 10:34:35,445 INFO - Importing issue: ExternalIssue{externalId=autoid-3931796335375488092, summary=KDT_CB_ECB_CT_52-OA, issueType=null} 2014-10-22 10:34:35,492 ERROR - Error importing issue ExternalIssue{externalId=autoid-3931796335375488092, summary=KDT_CB_ECB_CT_52-OA, issueType=null} com.atlassian.jira.plugins.importer.external.ExternalException: Unable to create issue: AXACISPA-124519 at com.atlassian.jira.plugins.importer.imports.importer.impl.ExternalUtils.updateIssue(ExternalUtils.java:717) at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.createIssue(DefaultJiraDataImporter.java:851) at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.importIssues(DefaultJiraDataImporter.java:762) at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.doImport(DefaultJiraDataImporter.java:354) at com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:27) at com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:16) at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:366) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) 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:662) Caused by: com.atlassian.jira.plugins.importer.external.ExternalException: Status 'Closed' does not have a linked step in the 'CIS FRANCE CIS Anomalies V2' workflow. Please map to a different status. at com.atlassian.jira.plugins.importer.imports.importer.impl.ExternalUtils.checkStatus(ExternalUtils.java:187) at com.atlassian.jira.plugins.importer.imports.importer.impl.ExternalUtils.updateIssue(ExternalUtils.java:707) ... 15 more 2014-10-22 10:34:35,492 INFO - Importing issue: ExternalIssue{externalId=autoid-8454105889356144787, summary=KDT_CB_CCB_CT_53-OA, issueType=null} 2014-10-22 10:34:35,539 ERROR - Error importing issue ExternalIssue{externalId=autoid-8454105889356144787, summary=KDT_CB_CCB_CT_53-OA, issueType=null} com.atlassian.jira.plugins.importer.external.ExternalException: Unable to create issue: AXACISPA-124520 at com.atlassian.jira.plugins.importer.imports.importer.impl.ExternalUtils.updateIssue(ExternalUtils.java:717) at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.createIssue(DefaultJiraDataImporter.java:851) at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.importIssues(DefaultJiraDataImporter.java:762) at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.doImport(DefaultJiraDataImporter.java:354) at com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:27) at com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:16) at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:366) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) 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:662) Caused by: com.atlassian.jira.plugins.importer.external.ExternalException: Status 'Open' does not have a linked step in the 'CIS FRANCE CIS Anomalies V2' workflow. Please map to a different status. at com.atlassian.jira.plugins.importer.imports.importer.impl.ExternalUtils.checkStatus(ExternalUtils.java:187) at com.atlassian.jira.plugins.importer.imports.importer.impl.ExternalUtils.updateIssue(ExternalUtils.java:707) ... 15 more 2014-10-22 10:34:35,539 INFO - Importing issue: ExternalIssue{externalId=autoid-1907355983083099894, summary=KDT_CB_S_CT_51-OB, issueType=null} 2014-10-22 10:34:35,586 ERROR - Error importing issue ExternalIssue{externalId=autoid-1907355983083099894, summary=KDT_CB_S_CT_51-OB, issueType=null} com.atlassian.jira.plugins.importer.external.ExternalException: Unable to create issue: AXACISPA-124521 at com.atlassian.jira.plugins.importer.imports.importer.impl.ExternalUtils.updateIssue(ExternalUtils.java:717) at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.createIssue(DefaultJiraDataImporter.java:851) at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.importIssues(DefaultJiraDataImporter.java:762) at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.doImport(DefaultJiraDataImporter.java:354) at com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:27) at com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:16) at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:366) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) 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:662) Caused by: com.atlassian.jira.plugins.importer.external.ExternalException: Status 'Closed' does not have a linked step in the 'CIS FRANCE CIS Anomalies V2' workflow. Please map to a different status. at com.atlassian.jira.plugins.importer.imports.importer.impl.ExternalUtils.checkStatus(ExternalUtils.java:187) at com.atlassian.jira.plugins.importer.imports.importer.impl.ExternalUtils.updateIssue(ExternalUtils.java:707) ... 15 more 2014-10-22 10:34:35,586 INFO - Importing issue: ExternalIssue{externalId=autoid-8065632652592786513, summary=KDT_CB_ECB_CT_52-OB, issueType=null} 2014-10-22 10:34:35,617 ERROR - Error importing issue ExternalIssue{externalId=autoid-8065632652592786513, summary=KDT_CB_ECB_CT_52-OB, issueType=null} com.atlassian.jira.plugins.importer.external.ExternalException: Unable to create issue: AXACISPA-124522 at com.atlassian.jira.plugins.importer.imports.importer.impl.ExternalUtils.updateIssue(ExternalUtils.java:717) at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.createIssue(DefaultJiraDataImporter.java:851) at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.importIssues(DefaultJiraDataImporter.java:762) at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.doImport(DefaultJiraDataImporter.java:354) at com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:27) at com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:16) at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:366) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) 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:662) Caused by: com.atlassian.jira.plugins.importer.external.ExternalException: Status 'Closed' does not have a linked step in the 'CIS FRANCE CIS Anomalies V2' workflow. Please map to a different status. at com.atlassian.jira.plugins.importer.imports.importer.impl.ExternalUtils.checkStatus(ExternalUtils.java:187) at com.atlassian.jira.plugins.importer.imports.importer.impl.ExternalUtils.updateIssue(ExternalUtils.java:707) ... 15 more 2014-10-22 10:34:35,617 INFO - Importing issue: ExternalIssue{externalId=autoid-655656645950747709, summary=KDT_CB_CCB_CT_53-OB, issueType=null} 2014-10-22 10:34:35,632 ERROR - Error importing issue ExternalIssue{externalId=autoid-655656645950747709, summary=KDT_CB_CCB_CT_53-OB, issueType=null} com.atlassian.jira.plugins.importer.external.ExternalException: Unable to create issue: AXACISPA-124523 at com.atlassian.jira.plugins.importer.imports.importer.impl.ExternalUtils.updateIssue(ExternalUtils.java:717) at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.createIssue(DefaultJiraDataImporter.java:851) at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.importIssues(DefaultJiraDataImporter.java:762) at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.doImport(DefaultJiraDataImporter.java:354) at com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:27) at com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:16) at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:366) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) 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:662) Caused by: com.atlassian.jira.plugins.importer.external.ExternalException: Status 'Open' does not have a linked step in the 'CIS FRANCE CIS Anomalies V2' workflow. Please map to a different status. at com.atlassian.jira.plugins.importer.imports.importer.impl.ExternalUtils.checkStatus(ExternalUtils.java:187) at com.atlassian.jira.plugins.importer.imports.importer.impl.ExternalUtils.updateIssue(ExternalUtils.java:707) ... 15 more 2014-10-22 10:34:35,632 INFO - 6 issues successfully created 2014-10-22 10:34:35,632 INFO - ------------------------------ 2014-10-22 10:34:35,632 INFO - Finished Importing : Issues 2014-10-22 10:34:35,632 INFO - ------------------------------

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,276 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot