Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-81974

The non-admin CSV Importer "Validate" feature returns a false error when importing Parent/Sub-task issues

    XMLWordPrintable

Details

    Description

      Summary

      When using the non-admin CSV import tool, the "Validate" feature is giving a false error when validating a CSV with Parent/Sub-task. Clicking on "Begin Import" with the same CSV and configuration will import the issues successfully with no errors.

      Environment

      • Atlassian Cloud

      Steps to Reproduce

      1. Go to the non-admin CSV importer by going to the Issue Navigator, and clicking on the "..." on the top right -> Import issues from CSV
      2. Use this file Test-Link.csv which contains this:
        Summary, Issue Type, Issue ID, Parent ID
        First Issue, Task, 1,
        Second Issue, Sub-Task, , 1
        
      1. Select any project, leave the other settings as default.
      2. Map the CSV fields accordingly. (Summary:Summary, Issue Type:Issue Type, Parent ID:Parent Id, Issue ID:Issue Id)
      3. On the page with the "Begin Import" and "Validate" buttons, click on "Validate".

      Expected Results

      The Validation should pass through successfully without any errors.

      Actual Results

      The validation returns this error:

      The validation process has found 1 error/s
      - Fatal error during import: Parent Issue cannot be null
      

      Notes

      • Although the Validation returns an error, the import will be successful if the user clicks on the "Begin Import" button.
      • Even when using the example CSV file for Sub-tasks provided in the documentation, the same error is returned when validating.

      Here are the Validation logs:

      2018-01-05 13:09:11,873 INFO - Importer started!
      2018-01-05 13:09:11,880 INFO - Engine is running in Validation-only mode
      2018-01-05 13:09:12,089 INFO - All issues will be imported to project: Monopoly (MON)
      2018-01-05 13:09:12,105 INFO - Creating issue: [externalId='1', summary='First Issue']
      2018-01-05 13:09:12,226 INFO - No problems found with issue 'First Issue'
      2018-01-05 13:09:12,232 INFO - Creating issue: [externalId='autoid-8287858083947989194', summary='Second Issue']
      2018-01-05 13:09:12,238 ERROR - Fatal error during import: Parent Issue cannot be null 

      Here are the logs when the file is actually imported (without making any changes):

      2018-01-05 10:03:22,732 INFO - Importer started!
      2018-01-05 10:03:22,740 INFO - Engine is running in Import mode
      2018-01-05 10:03:22,951 INFO - All issues will be imported to project: Monopoly (MON)
      2018-01-05 10:03:22,968 INFO - Creating issue: [externalId='1', summary='First Issue']
      2018-01-05 10:03:25,406 INFO - Issue created successfully with Key [MON-15], [externalId='1', summary='First Issue']
      2018-01-05 10:03:25,701 INFO - Creating issue: [externalId='autoid-2380441573030003319', summary='Second Issue']
      2018-01-05 10:03:27,097 INFO - Issue created successfully with Key [MON-16], [externalId='autoid-2380441573030003319', summary='Second Issue']
      

      Workaround

      None.

      Attachments

        Activity

          People

            75175a3526d9 Rohit Verma (Inactive)
            msatriya Sadiq (Inactive)
            Votes:
            30 Vote for this issue
            Watchers:
            31 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: