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

When Fetching test Execution through the API /rest/api/2/issue getting "testKey" and "testRunID" as "b" and "c"

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 6.2.0.1, Xray DC V7.1.1
    • Xray DC V7.4.2
    • REST API
    • Xray 2023 S17
    • OK

    Description

      Xray versions from the marketplace hide "testKey" and "testRunID" and they are replaced with "b" & "c" respectively. When fetching the issue through the API /rest/api/2/issue.

      How to reproduce

      1. Create Test, Test Execution
      2. Add test to Test Execution
      3. Fetch the Test execution using REST Endpoint :
        <Server-URL>/rest/api/2/issue/<TestExecutionID>

      Actual result/Attachments:

      Actual Results:
      "customfield_50504": [
                  {
                      "b": "NCSDEV-6937",
                      "c": 8541994
                  },
                  {
                      "b": "NCSDEV-2228",
                      "c": 9911454
                  }
      ], 
      
      

      Expected result:

      "customfield_50504": [
                  {
                      "testKey": "NCSDEV-6937",
                      "id": 8541994
                  },
                  {
                      "testKey": "NCSDEV-2228",
                      "id": 9911454
                  }
      ],
      

      Attachments

        Activity

          People

            pedro.teixeira Pedro Daniel Moreira Teixeira
            Shashank.Shekhar Shashank Shekhar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: