OBJECT
getPreconditions
link GraphQL Schema definition
1 Query getPreconditions { 2 3 # Returns multiple Preconditions by jql, issueIds, projectId or Precondition Type. 4 # 5 # 6 # Arguments 7 # jql: the jql that defines the search. 8 # issueIds: the ids of the Precondition issues to be returned. 9 # projectId: the id of the project of the Precondition issues to be returned. 10 # preconditionType: the Precondition Type of the Precondition issues to be returned. 11 # limit: the maximum amount of Preconditions to be returned. The maximum is 100. 12 # start: the index of the first item to return in the page of results (page offset). 13 # modifiedSince: all Preconditions modified after this date will be returned 14 # folder: the folder information required to filter the Test issues to be returned. 15 ( 16 String, : 17 String], : [ 18 String, : 19 TestTypeInput, : 20 Int!, : 21 Int, : 22 String, : 23 PreconditionFolderSearchInput : 24 ): PreconditionResults 25 26 }
link Example
The Query below returns the first 100 Preconditions.
{ getPreconditions(limit: 100) { total start limit results { issueId preconditionType { name kind } definition jira(fields: ["assignee", "reporter"]) } } }
The Query below returns 10 Preconditions that match the provided jql
{ getPreconditions(jql: "project = 'PC'", limit: 10) { results { issueId preconditionType { name kind } 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.