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

getDataset GraphQL API returns row values in an order that does not match the parameters order

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Ready for Release
    • Medium
    • Resolution: Unresolved
    • Xray Cloud (6.16.2) [Silent Release_26.2]
    • FPC#30, Xray Cloud 7.6.0
    • GraphQL
    • None
    • GraphQL

    • Standard
    • OK

    Description

      • getDataset GraphQL API returns row values in an order that does not match the parameters order

      The getDataset GraphQL API returns a parameters array in a stable and correct order, but the order of values inside each rows[].Values array does not consistently match that exact order. This creates an ambiguous and unreliable response, as consumers implicitly rely on positional alignment between:

       parameters[i]  <->  rows[].Values[i]
      

      Steps to reproduce:

      1-Create a dataset with parameters:

      • param1
      • PARAM 2
      • PARAM3

      2- Add rows such as:

      • A, H, On
      • B, I, On
      • C, K, On
      • D, K, On
      • E, L, Off
      • F, M, Off
      • G, N, Off

      Please see the screenshot below.

      3- Then perform the Graphl Request:

      Body:
      
      {
          getDataset(testIssueId: "188992") {
              id
              parameters {
                  name
                  type
                  listValues
              }
              rows { 
                order 
                Values
              }
          }
      }
      

      Expected Result:

      {
        "data": {
          "getDataset": {
            "id": "6973de15977a218d40a7cce1",
            "parameters": [
              {
                "name": "param1",
                "type": "text",
                "listValues": []
              },
              {
                "name": "PARAM 2",
                "type": "text",
                "listValues": []
              },
              {
                "name": "PARAM3",
                "type": "text",
                "listValues": []
              }
            ],
            "rows": [
              {
                "order": 0,
                "Values": ["A", "H", "On"]
              },
              {
                "order": 1,
                "Values": ["B", "I", "On"]
              },
              {
                "order": 2,
                "Values": ["C", "K", "On"]
              },
              {
                "order": 3,
                "Values": ["D", "K", "On"]
              },
              {
                "order": 4,
                "Values": ["E", "L", "Off"]
              },
              {
                "order": 5,
                "Values": ["F", "M", "Off"]
              },
              {
                "order": 6,
                "Values": ["G", "N", "Off"]
              }
            }
          }
        }
      }
      

       

      Actual Result:

      The getDataset GraphQL API returns the parameters array in the expected order, but the order of values inside each rows[].Values array does not consistently match that same order.

      Attachments

        1. image-2026-01-23-18-10-15-803.png
          33 kB
          Priscila Calisto Marques
        2. image-2026-01-23-18-17-38-870.png
          20 kB
          Priscila Calisto Marques

        Activity

          People

            alex.macias Alex Macias
            priscila.marques Priscila Calisto Marques
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: