OBJECT
getTests
link GraphQL Schema definition
1 Query getTests { 2 3 # Returns multiple tests by jql, issue ids, project id or test type. 4 # 5 # 6 # Arguments 7 # jql: the jql that defines the search. 8 # issueIds: the ids of the Test issues to be returned. 9 # projectId: the id of the project of the Test issues to be returned. 10 # testType: the Test Type of the Test issues to be returned. 11 # modifiedSince: all tests modified after this date will be returned 12 # limit: the maximum amount of Tests to be returned. The maximum is 100. 13 # start: the index of the first item to return in the page of results (page offset). 14 # folder: the folder information required to filter the Test issues to be returned. 15 String, : [String], : String, : TestTypeInput, : String, : Int!, : Int, : FolderSearchInput): TestResults ( : 16 17 }
link Example
The query below returns the first 100 tests.
{ getTests(limit: 100) { total start limit results { issueId testType { name kind } jira(fields: ["assignee", "reporter"]) } } }
The query below returns 10 tests that match the provided jql.
{ getTests(jql: "project = 'PC'", limit: 10) { total start limit results { issueId testType { name kind } steps { id data action result attachments { id filename } customfields { id value } } 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.