OBJECT

getTestExecutions

link GraphQL Schema definition

1Query getTestExecutions {
2
3# Returns multiple Test Executions by jql, issue ids or project id.
4#
5#
6# Arguments
7# jql: the jql that defines the search.
8# issueIds: the ids of the Test Executions issues to be returned.
9# projectId: the id of the project of the Test Execution issues to be returned.
10# limit: the maximum amount of Test Executions to be returned. The maximum is 100.
11# start: the index of the first item to return in the page of results (page offset).
12# modifiedSince: all Test Executions modified after this date will be returned
13getTestExecutions(jql: String, issueIds: [String], projectId: String, limit: Int!, start: Int, modifiedSince: String): TestExecutionResults
14
15}

link Example

The Query below returns the first 100 Test Executions

{
    getTestExecutions(limit: 100) {
        total
        start
        limit
        results {
            issueId
            jira(fields: ["assignee", "reporter"])
        }
    }
}

The Query below returns 10 Test Executions that match the provided jql.

{
    getTestExecutions(jql: "project = 'PC'", limit: 10) {
        total
        start
        limit
        results {
            issueId
            tests(limit: 10) {
                total
                start
                limit
                results {
                    issueId
                    testType {
                        name
                    }
                }
            }
            jira(fields: ["assignee", "reporter"])
        }
    }
}

Note: If the jql returns more than 100 issues an error will be returned asking the user to refine the jql search.