Details
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
- Open Postman or Insomnia
- 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"])
}
}
}
}
}
- 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
- duplicates
-
XCC-3171 Loading...