Workflow export fails due to invalid transition parameters

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      Issue Summary

      java.util.NoSuchElementException: Collection contains no element matching the predicate.

      Steps to Reproduce

      1. Add a transition to your workflow where the source/destination step ID doesn't match any steps in the workflow.
      2. Try migrating the project.

      Expected Results

      Export should work fine.

      Actual Results

      Export fails with this exception:

      java.util.NoSuchElementException: Collection contains no element matching the predicate.
      	at com.atlassian.migration.jira.classic.service.WorkflowService.toWorkflowTransition(WorkflowService.kt:497)
      	at com.atlassian.migration.jira.classic.service.WorkflowService.toMigrationRequestBean(WorkflowService.kt:163)
      	at com.atlassian.migration.jira.classic.service.WorkflowService.toMigrationRequestBean(WorkflowService.kt:50)
      	at com.atlassian.migration.jira.executor.monolith.GenericMonolithMigrationService.toMigrationRequestBeans(GenericMonolithMigrationService.kt:75)
      	at com.atlassian.migration.jira.classic.service.WorkflowService.migrateCore(WorkflowService.kt:109)
      	at com.atlassian.migration.jira.classic.service.WorkflowService.migrate(WorkflowService.kt:104)
      	at com.atlassian.migration.jira.classic.JiraClassicCoreExecutor.executeEntities(JiraClassicCoreExecutor.kt:75)
      	at com.atlassian.migration.jira.executor.AbstractExecutor.execute(AbstractExecutor.kt:24)
      	at com.atlassian.migration.jira.service.batch.BatchExecutor.execute(BatchExecutor.kt:26)
      	at com.atlassian.migration.jira.service.orchestration.Orchestrator.dispatch(Orchestrator.kt:199)
      

      Workaround

      Fix/remove the offending transition.

            Assignee:
            Shayka Zarrin
            Reporter:
            Deepak Hirawat
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: