Uploaded image for project: 'Xray for Jira'
  1. Xray for Jira
  2. XRAY-3811

Xray Migration Tool - Test Step Import handler is looking up for issue objects in Jira-Target using the issuekey

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Done
    • None
    • R3.4.0
    • None
    • R3.4.0 S5, R3.4.0 S4, R3.4.0 S6
    • OK

    Description

      Note: Jira-Origin is where the backup file is generated, Jira-Target is where the project is imported

      The Xray Migration Tool looks up for issues in Jira-Target using issuekeys on the backup file without validating its issuetype nor its content, to build ID mappings (for instance step old id to step new id), for associating Xray entities (for instance to associate Tests to Test Plans), assuming that the issue in Jira-Origin is the same in the Jira-Target.

      This fails under some cases:

      Test Step Import: Mapping the step old id to the new id

      • step old id = id of the step in Jira-Origin
      • step new id = id of the step in Jira-Target

      Let's imagine that the admin generates a backup file, in the Jira-Origin. Let's call this backup file BCK1.

      Then some time passes by, let's say a week. During that time a user creates the issue A-2 in the project A, in the Jira-Origin, with the following steps:

      Step Data Expected Result
      Step 1 Step 1 Step 1
      Step 2 Step 2 Step 2

      The admin then imports the project A in the Jira-Target, using the backup file BCK1. The project A is imported with success - Note that the issue A-2 will not be imported since the backup file BCK1 was generated before the creation of the issue A-2 in the Jira-Origin.

      Later on, the user creates an issue with issue key A-2 in the Jira-Target, with the following steps:

      Step Data Expected Result
      AAA BBB CCC

      At this point we have two issues with same issue key in Jira-Origin and Jira-Target (issuekey = A-2), with same issuetype but with different steps.

      The admin then generates a new backup file of the Jira-Origin. Let's call this backup file BCK2. This file will now have the information of the issue A-2 of the Jira-Origin.

      The admin then tries to import the project B in the Jira-Target, using the backup file BCK2.

      The Test Step Import phase will fail when mapping the step new id to step old id because it assumes the issue A-2 in Jira-Origin has the same steps as the issue A-2 in Jira-Target. But these issues are different.

      Attachments

        Issue Links

          Activity

            People

              pmmr Pedro Rodrigues
              dmdu David Duarte
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week, 4 days, 1 hour, 30 minutes
                  1w 4d 1h 30m