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

GraphQL "modifiedsince" returns error and does not display information

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Waiting Approval
    • Medium
    • Resolution: Unresolved
    • Xray Cloud 16.6.0
    • None
    • GraphQL, REST API
    • None
    • UI

    • UNCOVERED

    Description

      Description

      When using the Xray GraphQL API getTestExecutions query with the modifiedSince parameter, no Test Execution details are returned when querying dates:

      For example, the following GraphQL query does not return any results:

      getTestExecutions(jql: "project = 'PROJECTNAME'", modifiedSince:"", limit: 10,) {
      

      However, when the same search is performed using the Jira JQL updated field instead of the modifiedSince parameter, the expected Test Executions are returned:

      issuetype = "Test Execution" AND updated >= ""
      

      This suggests that the modifiedSince parameter may not be correctly identifying Test Executions that were modified within the specified date range.

      How to reproduce

      1. Open Postman or Insomnia
      2. Execute the following GraphQL query:
      {
      	getTestExecutions(jql: "project = 'FW'", modifiedSince:"", limit: 10,) {
      		total
              start
              limit
      		results {
      			jira(fields: ["key", "assignee"])
      			testEnvironments
      			tests(limit: 100) {
      				results {
      					jira(fields: ["key"])
      				}
      			}
      		}
      	}
      }
      
      1. Observe the response: Get approximate count for JQL failed! - JQL query error: A value, list, or function was expected, but ‘,’ was returned. You must enclose ‘,’ in quotes to use it as a value.

      Actual result/Attachments

      No Test Execution results are returned when using the modifiedSince parameter, despite Test Executions existing that were updated within the specified period:

      Expected result

      The getTestExecutions GraphQL query should return the Test Executions that were modified on or after the date/time specified in the modifiedSince parameter.

      The behavior should be consistent with the results obtained when using the equivalent Jira JQL updated criteria.

      Version

      • 16.6.0

      Workaround

      As a workaround, the customer can use the Jira JQL updated field instead of the GraphQL modifiedSince parameter:

      issuetype = "Test Execution" AND updated >= ""
      

      Using this approach returns the expected Test Execution results.

      Attachments

        Issue Links

          Activity

            People

              bernardo.cottim Bernardo Cottim
              ana.ribeiro Ana Ribeiro
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: