Uploaded image for project: 'Xray for Jira Cloud'
  1. Xray for Jira Cloud
  2. XRAYCLOUD-8747

Link between Test Execution and Defect is removed if we update the Test Run using Import JSON Execution Results

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Open
    • Medium
    • Resolution: Unresolved
    • Xray Cloud 6.4.0
    • None
    • None
    • Jira Cloud, Postman for API, or Chrome for UI

    • UNCOVERED

    Description

      Description:

      While updating Test Run using JSON execution results, the existing link between Test Execution and Defects is removed, even if we include the Defect Key in the results JSON file.

      Pre-conditions:

      N/A

      How to reproduce

      1. Add a Defect to an existing Test Run. On the Test Execution issue, we can see the Defect link as "Created".
      2. Now, from UI( Test Execution > Import Execution Results) or from REST API /api/v2/import/execution import the following JSON results file:
      {"testExecutionKey": "MUR-25",
       "info": {"summary": "Some Summary"
       },
       "tests": [
       {"testKey": "MUR-7",
       "start": "2025-06-11T00:00:00+00:00",
       "finish": "2025-06-11T00:15:00+00:00",
       "status": "Failed",
       "defects": ["MUR-35"]}]} 


      Actual result/Attachments:

      The Defect link with the Test Execution issue is removed. 

      The history of the Test Execution shows the removed Defect link log. The Test and Test Run page retains the Defect.

      Expected result:

      The Defect link should be retained on the Test Execution as the JSON file contains the Defect issue Key.

      Version

      • Xray Cloud 6.4.0

      Attachments

        Activity

          People

            joana.fonseca Joana Fonseca
            jayanthi.murthi Jayanthi Murthi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: