Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-19257

CSV importer fails if column called 'status' is not mapped to Status

    XMLWordPrintable

Details

    Description

      Given the CSV:

      type,summary,status,realstatus
      Bug,Womble,ignorethis,Closed
      

      mapped such that realstatus is mapped to Status:

      Resulting in this properties file:

      # written by PropertiesConfiguration
      # Fri Sep 25 00:39:35 EDT 2009
      delimiter = \,
      existingprojectkey = AE
      importsingleproject = false
      importexistingproject = true
      mapfromcsv = false
      field.summary = summary
      field.realstatus = status
      field.type = type
      value.type.Bug = 1
      value.realstatus.Closed = 10003
      user.email.suffix = @atlassian.com
      

      Importing breaks with:

      [00:39:39] FAILED: Error importing issue Issue {summary=Womble, type=1}
      [00:39:39] com.atlassian.jira.external.ExternalException: Unable to create issue: Womble
      	at com.atlassian.jira.external.ExternalUtils.createIssue(ExternalUtils.java:320)
      	at com.atlassian.jira.imports.importer.impl.DefaultJiraDataImporter.importIssues(DefaultJiraDataImporter.java:508)
      	at com.atlassian.jira.imports.importer.impl.DefaultJiraDataImporter.doImport(DefaultJiraDataImporter.java:125)
      	at com.atlassian.jira.imports.importer.impl.ImporterThread.run(ImporterThread.java:21)
      Caused by: com.atlassian.jira.external.ExternalException: Cannot find status with id 'ignorethis'.
      	at com.atlassian.jira.external.ExternalUtils.checkStatus(ExternalUtils.java:343)
      	at com.atlassian.jira.external.ExternalUtils.createIssue(ExternalUtils.java:306)
      	... 3 more
      

      For some reason the status mapping isn't being persisted, and the importer assumes the 'status' column maps.

      Attachments

        Activity

          People

            Unassigned Unassigned
            7ee5c68a815f Jeff Turner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: