OBJECT

getTestSets

link GraphQL Schema definition

1Query getTestSets {
2
3# Returns multiple Test Sets by jql, issueIds or projectId.
4#
5#
6# Arguments
7# jql: the jql that defines the search.
8# issueIds: the ids of the Test Set issues to be returned.
9# projectId: the id of the project of the Test Set issues to be returned.
10# limit: the maximum amount of Test Sets 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 sets modified after this date will be returned
13getTestSets(jql: String, issueIds: [String], projectId: String, limit: Int!, start: Int, modifiedSince: String): TestSetResults
14
15}

link Example

The query below returns the first 100 Test Sets.

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

The query below returns 10 Test Sets that match the provided jql.

{
    getTestSets(jql: "project = 'PC'", limit: 10) {
        total
        start
        limit
        results {
            issueId
            tests(limit: 10) {
                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.