OBJECT

Mutation

link GraphQL Schema definition

1type Mutation {
2
3# Mutation used to create a new Folder.
4#
5#
6#
7# Arguments
8# projectId: the project id of the Folder.
9# testPlanId: the Test Plan id of the Folder.
10# path: the path of the Folder.
11# testIssueIds: the Test ids to add to the Folder.
12# issueIds: the Test or Precondition ids to add to the Folder.
13createFolder(projectId: String, testPlanId: String, path: String!, testIssueIds: [String], issueIds: [String]): ActionFolderResult
14
15# Mutation used to delete a Folder.
16#
17# Arguments
18# projectId: the project id of the Folder.
19# testPlanId: the Test Plan id of the Folder.
20# path: the path of the Folder.
21deleteFolder(projectId: String, testPlanId: String, path: String!): String
22
23# Mutation used to rename a Folder.
24#
25# Arguments
26# projectId: the project id of the Folder.
27# testPlanId: the Test Plan id of the Folder.
28# path: the path of the Folder.
29# newName: the new name of the Folder.
30renameFolder(projectId: String, testPlanId: String, path: String!, newName: String!): ActionFolderResult
31
32# Mutation used to move a Folder.
33#
34# Arguments
35# projectId: the project id of the Folder.
36# testPlanId: the Test Plan id of the Folder.
37# path: the path of the Folder.
38# destinationPath: the new path of the Folder.
39# index: the index of where to insert the folder in.
40moveFolder(projectId: String, testPlanId: String, path: String!, destinationPath: String!, index: Int): ActionFolderResult
41
42# Mutation used to add tests to a Folder.
43#
44# Arguments
45# projectId: the project id of the Folder.
46# testPlanId: the Test Plan id of the Folder.
47# path: the path of the Folder.
48# testIssueIds: the Test ids to add to the Folder.
49# index: the index of where to insert the Tests in.
50addTestsToFolder(projectId: String, testPlanId: String, path: String!, testIssueIds: [String]!, index: Int): ActionFolderResult
51
52# Mutation used to add issues to a Folder.
53#
54# Arguments
55# projectId: the project id of the Folder.
56# path: the path of the Folder.
57# issueIds: the Test or Precondition ids to add to the Folder.
58# index: the index of where to insert the Tests in.
59addIssuesToFolder(projectId: String!, path: String!, issueIds: [String]!, index: Int): ActionFolderResult
60
61# Mutation used to remove tests from Folder.
62#
63# Arguments
64# projectId: the project id of the Folder.
65# testPlanId: the Test Plan id of the Folder.
66# testIssueIds: the Test ids to remove from the Folder.
67removeTestsFromFolder(projectId: String, testPlanId: String, testIssueIds: [String]!): String
68
69# Mutation used to remove issues from Folder.
70#
71# Arguments
72# projectId: the project id of the Folder.
73# issueIds: the Test or Precondition ids to remove from the Folder.
74removeIssuesFromFolder(projectId: String!, issueIds: [String]!): String
75
76# Mutation used to create a new Test.
77#
78#
79# Arguments
80# testType: the Test Type of the Test.
81# steps: the Step definition of the test.
82# unstructured: the unstructured definition of the Test.
83# gherkin: the gherkin definition of the Test.
84# preconditionIssueIds: the Precondition ids that be associated with the Test.
85# folderPath: the Test repository folder for the Test.
86# jira: the Jira object that will be used to create the Test.
87# Check this Jira endpoint for more information related with this field.
88createTest(testType: UpdateTestTypeInput, steps: [CreateStepInput], unstructured: String, gherkin: String, preconditionIssueIds: [String], folderPath: String, jira: JSON!): CreateTestResult
89
90# Mutation used to update the Test Type of a Test.
91#
92#
93# Arguments
94# issueId: the issue id of the Test.
95# versionId: the id of a Test version. If not given, will update the default Test version.
96# testType: the Test Type to update on the Test.
97updateTestType(issueId: String!, versionId: Int, testType: UpdateTestTypeInput!): Test
98
99# Mutation used to update the Unstructured definition of a Test.
100#
101#
102# Arguments
103# issueId: the issue id of the Test.
104# versionId: the id of a Test version. If not given, will update the default Test version.
105# unstructured: the unstructured definition of the Test.
106updateUnstructuredTestDefinition(issueId: String!, versionId: Int, unstructured: String!): Test
107
108# Mutation used to update the Gherkin definition of a Test.
109#
110#
111# Arguments
112# issueId: the issue id of the Test.
113# versionId: the id of a Test version. If not given, will update the default Test version.
114# gherkin: the gherkin definition of the Test.
115updateGherkinTestDefinition(issueId: String!, versionId: Int, gherkin: String!): Test
116
117# Mutation used to delete a Test.
118#
119# Arguments
120# issueId: the issue id of the Test.
121deleteTest(issueId: String!): String
122
123# Mutation used to add a Step to a Test.
124#
125#
126# Arguments
127# issueId: the issue id of the Test.
128# versionId: the id of a Test version. If not given, will update the default Test version.
129# step: the Step to add to the Test.
130# position: the one-based position at which to insert the step. If omitted, the step is appended to the end.
131addTestStep(issueId: String!, versionId: Int, step: CreateStepInput!, position: Int): Step
132
133# Mutation used to update a Step of a Test.
134#
135# Arguments
136# stepId: the id of the Step.
137# step: the information to update on the Step.
138updateTestStep(stepId: String!, step: UpdateStepInput!): UpdateTestStepResult
139
140# Mutation used to remove a Step from a Test.
141#
142# Arguments
143# stepId: the id of the Step.
144removeTestStep(stepId: String!): String
145
146# Mutation used to remove all Steps from a Test.
147#
148#
149# Arguments
150# issueId: the id of the Step.
151# versionId: the id of a Test version. If not given, will update the default Test version.
152removeAllTestSteps(issueId: String!, versionId: Int): String
153
154# Mutation used to associate Preconditions to the Test.
155# Note: The preconditions to be associated with the Test must be of the same Test Type of the Test.
156#
157#
158# Arguments
159# issueId: the issue id of the Test.
160# versionId: the id of a Test version. If not given, will update the default Test version.
161# preconditionIssueIds: the issue ids of the Preconditions.
162addPreconditionsToTest(issueId: String!, versionId: Int, preconditionIssueIds: [String]!): AddPreconditionsResult
163
164# Mutation used to remove Preconditions from the Test.
165#
166#
167# Arguments
168# issueId: the issue id of the Test.
169# versionId: the id of a Test version. If not given, will update the default Test version.
170# preconditionIssueIds: the issue ids of the Preconditions.
171removePreconditionsFromTest(issueId: String!, versionId: Int, preconditionIssueIds: [String]!): String
172
173# Mutation used update the Test folder on the Test Repository.
174#
175# Arguments
176# issueId: the issue id of the Test.
177# folderPath: the Test repository folder for the Test.
178updateTestFolder(issueId: String!, folderPath: String!): String
179
180# Mutation used update the precondition folder on the Test Repository.
181#
182# Arguments
183# issueId: the issue id of the Precondition.
184# folderPath: the Test repository folder for the Precondition.
185updatePreconditionFolder(issueId: String!, folderPath: String!): String
186
187# Mutation used to associate Test Sets to the Test.
188#
189# Arguments
190# issueId: the issue id of the Test.
191# testSetIssueIds: the issue ids of the Test Sets.
192addTestSetsToTest(issueId: String!, testSetIssueIds: [String]!): AddTestSetsResult
193
194# Mutation used to remove Test Sets from the Test.
195#
196# Arguments
197# issueId: the issue id of the Test.
198# testSetIssueIds: the issue ids of the Test Sets.
199removeTestSetsFromTest(issueId: String!, testSetIssueIds: [String]!): String
200
201# Mutation used to associate Test Plans to the Test.
202#
203# Arguments
204# issueId: the issue id of the Test.
205# testPlanIssueIds: the issue ids of the Test Plans.
206addTestPlansToTest(issueId: String!, testPlanIssueIds: [String]!): AddTestPlansResult
207
208# Mutation used to remove Test Plans from the Test.
209#
210# Arguments
211# issueId: the issue id of the Test.
212# testPlanIssueIds: the issue ids of the Test Plans.
213removeTestPlansFromTest(issueId: String!, testPlanIssueIds: [String]!): String
214
215# Mutation used to associate Test Executions to the Test.
216#
217#
218# Arguments
219# issueId: the issue id of the Test.
220# versionId: the id of a Test version. If not given, will update the default Test version.
221# testExecIssueIds: the issue ids of the Test Executions.
222addTestExecutionsToTest(issueId: String!, versionId: Int, testExecIssueIds: [String]!): AddTestExecutionsResult
223
224# Mutation used to remove Test Executions from the Test.
225#
226# Arguments
227# issueId: the issue id of the Test.
228# testExecIssueIds: the issue ids of the Test Executions.
229removeTestExecutionsFromTest(issueId: String!, testExecIssueIds: [String]!): String
230
231# Mutation used to create a new Precondition.
232#
233# Arguments
234# preconditionType: the Precondition Type of the Precondition issue.
235# definition: the definition of the Precondition issue.
236# testIssueIds: the Test issue ids to be associated with the Precondition issue. Will associate the default Test versions. Cannot be used with tests.
237# tests: the Test versions to be associated with the Precondition. Cannot be used with testIssueIds.
238# folderPath: the Test repository folder for the Precondition.
239# jira: the jira object that will be used to create the Precondition.
240# Check this Jira endpoint for more information related with this field.
241createPrecondition(preconditionType: UpdatePreconditionTypeInput, definition: String, testIssueIds: [String], tests: [TestWithVersionInput], folderPath: String, jira: JSON!): CreatePreconditionResult
242
243# Mutation used to update a Precondition
244#
245#
246# Arguments
247# issueId: the issue id of the Precondition.
248# data: the object containing the information to update the Precondition.
249updatePrecondition(issueId: String!, data: UpdatePreconditionInput): Precondition
250
251# Mutation used to delete a Precondition
252#
253# Arguments
254# issueId: the issue id of the Precondition.
255deletePrecondition(issueId: String!): String
256
257# Mutation used to associate Tests to the Precondition. One of testIssueIds or tests is required.
258# Note: The Tests to be associated with the Precondition must be of the same Test Type of the Precondition.
259#
260#
261# Arguments
262# issueId: the issue id of the Precondition.
263# testIssueIds: the issue ids of the Tests. Will associate the default Test versions. Cannot be used with tests.
264# tests: the ids of the Test versions. Cannot be used with testIssueIds.
265addTestsToPrecondition(issueId: String!, testIssueIds: [String], tests: [TestWithVersionInput]): AddTestsResult
266
267# Mutation used to remove Tests from the Precondition. One of testIssueIds or tests is required.
268#
269#
270# Arguments
271# issueId: the issue id of the Precondition.
272# testIssueIds: the issue ids of the Tests. Will remove the default Test versions. Cannot be used with tests.
273# tests: the ids of the Test versions. Cannot be used with testIssueIds.
274removeTestsFromPrecondition(issueId: String!, testIssueIds: [String], tests: [TestWithVersionInput]): String
275
276# Mutation used to create a new Test Set.
277#
278# Arguments
279# testIssueIds: the Test ids that will be associated with the Test Set.
280# jira: the Jira object that will be used to create the Test Set.
281# Check this Jira endpoint for more information related with this field.
282createTestSet(testIssueIds: [String], jira: JSON!): CreateTestSetResult
283
284# Mutation used to delete a Test Set
285#
286# Arguments
287# issueId: The issue id of the Test Set.
288deleteTestSet(issueId: String!): String
289
290# Mutation used to associate Tests to the Test Set.
291#
292# Arguments
293# issueId: the issue id of the Test Set.
294# testIssueIds: the issue ids of the Tests.
295addTestsToTestSet(issueId: String!, testIssueIds: [String]!): AddTestsResult
296
297# Mutation used to remove Tests from the Test Set.
298#
299# Arguments
300# issueId: the issue id of the Test Set.
301# testIssueIds: the issue ids of the Tests.
302removeTestsFromTestSet(issueId: String!, testIssueIds: [String]!): String
303
304# Mutation used to create a new Test Plan.
305#
306# Arguments
307# savedFilter: the saved filter id or name that will be used to configure the Test Plan. Cannot be used with testIssueIds.
308# testIssueIds: the test issue ids that will be associated with the Test Plan. Cannot be used with savedFilter.
309# jira: the Jira object that will be used to create the Test Plan.
310# Check this Jira endpoint for more information related with this field.
311createTestPlan(savedFilter: String, testIssueIds: [String], jira: JSON!): CreateTestPlanResult
312
313# Mutation used to delete a Test Plan.
314#
315# Arguments
316# issueId: issue id of the Test Plan.
317deleteTestPlan(issueId: String!): String
318
319# Mutation used to associate Tests to the Test Plan.
320#
321# Arguments
322# issueId: the issue id of the Test Plan.
323# testIssueIds: the issue ids of the Tests.
324addTestsToTestPlan(issueId: String!, testIssueIds: [String]!): AddTestsResult
325
326# Mutation used to remove Tests from the Test Plan.
327#
328# Arguments
329# issueId: the issue id of the Test Plan.
330# testIssueIds: the issue ids of the Tests.
331removeTestsFromTestPlan(issueId: String!, testIssueIds: [String]!): String
332
333# Mutation used to associate Test Executions to the Test Plan.
334#
335# Arguments
336# issueId: the issue id of the Test Plan.
337# testExecIssueIds: the issue ids of the Test Executions.
338addTestExecutionsToTestPlan(issueId: String!, testExecIssueIds: [String]!): AddTestExecutionsResult
339
340# Mutation used to remove Test Executions from the Test Plan.
341#
342# Arguments
343# issueId: the issue id of the Test Plan.
344# testExecIssueIds: the issue ids of the Test Executions.
345removeTestExecutionsFromTestPlan(issueId: String!, testExecIssueIds: [String]!): String
346
347# Mutation used to create a new Test Execution.
348#
349# Arguments
350# testIssueIds: the test issue ids that will be associated with the Test Execution. Cannot be used with tests.
351# tests: the Test versions to be associated with the Test Execution. Cannot be used with testIssueIds.
352# testEnvironments: the test environments to be added to the Test Execution.
353# jira: the Jira object that will be used to create the Test Execution.
354# Check this Jira endpoint for more information related with this field.
355createTestExecution(testIssueIds: [String], tests: [TestWithVersionInput], testEnvironments: [String], jira: JSON!): CreateTestExecutionResult
356
357# Mutation used to delete a Test Execution.
358#
359# Arguments
360# issueId: the issue id of the Test Execution.
361deleteTestExecution(issueId: String!): String
362
363# Mutation used to associate Tests to the Test Execution. One of testIssueIds or tests is required.
364#
365# Arguments
366# issueId: the issue id of the Test Execution.
367# testIssueIds: the ids of the Tests. Will associate the default Test versions. Cannot be used with tests.
368# tests: the ids of the Test versions. Cannot be used with testIssueIds.
369addTestsToTestExecution(issueId: String!, testIssueIds: [String], tests: [TestWithVersionInput]): AddTestsResult
370
371# Mutation used to remove Tests from the Test Execution.
372#
373# Arguments
374# issueId: issue id of the Test Execution.
375# testIssueIds: the ids of the Tests.
376removeTestsFromTestExecution(issueId: String!, testIssueIds: [String]!): String
377
378# Mutation used to add Test Environments to the Test Execution.
379#
380# Arguments
381# issueId: the issue id of the Test Execution.
382# testEnvironments: the test environments to add.
383addTestEnvironmentsToTestExecution(issueId: String!, testEnvironments: [String]!): AddTestEnvironmentsResult
384
385# Mutation used to remove Test Environments from the Test Execution.
386#
387# Arguments
388# issueId: the issue id of the Test Execution.
389# testEnvironments: the test environments to remove
390removeTestEnvironmentsFromTestExecution(issueId: String!, testEnvironments: [String]!): String
391
392# Mutation used to reset the Test Run. This will load the new test definition and delete the current execution data.
393#
394# Arguments
395# id: the id of the Test Run.
396resetTestRun(id: String!): String
397
398# Mutation used to update the status of a Test Run.
399#
400# Arguments
401# id: the id of the Test Run.
402# status: the id or name of the status of the Test Run.
403updateTestRunStatus(id: String!, status: String!): String
404
405# Mutation used to update the comment of a Test Run.
406#
407# Arguments
408# id: the id of the Test Run.
409# comment: the comment of the Test Run.
410updateTestRunComment(id: String!, comment: String!): String
411
412# Mutation used to update a Test Run.
413#
414# Arguments
415# id: the id of the Test Run.
416# comment: the comment of the Test Run.
417# startedOn: the startedOn of the Test Run.
418# finishedOn: the finishedOn of the Test Run.
419# assigneeId: the assignee of the Test Run.
420# executedById: the executedBy of the Test Run.
421# customFields: the customFields of the Test Run.
422updateTestRun(id: String!, comment: String, startedOn: String, finishedOn: String, assigneeId: String, executedById: String, customFields: [CustomFieldInput]): UpdateTestRunResult
423
424# Mutation used to add defects to a Test Run.
425#
426# Arguments
427# id: the id of the Test Run.
428# issues: the ids or keys of the defects to add to the Test Run.
429addDefectsToTestRun(id: String!, issues: [String]!): AddDefectsResult
430
431# Mutation used to remove defects from a Test Run.
432#
433# Arguments
434# id: the id of the Test Run.
435# issues: the ids or keys of the defects to remove from the Test Run.
436removeDefectsFromTestRun(id: String!, issues: [String]!): String
437
438# Mutation used to add evidence to a Test Run.
439#
440# Arguments
441# id: the id of the Test Run.
442# evidence: the evidence to add to the Test Run.
443addEvidenceToTestRun(id: String!, evidence: [AttachmentDataInput]!): AddEvidenceResult
444
445# Mutation used to remove evidence from a Test Run.
446#
447# Arguments
448# id: the id of the Test Run.
449# evidenceIds: the ids of the evidence to remove from the Test Run.
450# evidenceFilenames: the filenames of the evidence to remove from the Test Run.
451removeEvidenceFromTestRun(id: String!, evidenceIds: [String], evidenceFilenames: [String]): RemoveEvidenceResult
452
453# Mutation used to update the Test Run Step.
454#
455# Arguments
456# testRunId: The id of the Test Run.
457# stepId: the id of the Test Run Step.
458# updateData: the update information.
459# iterationRank: the rank of the iteration.
460updateTestRunStep(testRunId: String!, stepId: String!, updateData: UpdateTestRunStepInput!, iterationRank: String): UpdateTestRunStepResult
461
462# Mutation used to add evidence to a Test Run Step.
463#
464# Arguments
465# testRunId: The id of the Test Run.
466# stepId: the id of the Test Run Step.
467# evidence: the evidence to add to the Test Run Step.
468# iterationRank: the rank of the iteration.
469addEvidenceToTestRunStep(testRunId: String!, stepId: String!, evidence: [AttachmentDataInput], iterationRank: String): AddEvidenceResult
470
471# Mutation used to remove evidence from a Test Run Step.
472#
473# Arguments
474# testRunId: The id of the Test Run.
475# stepId: the id of the Test Run Step.
476# iterationRank: the rank of the iteration.
477# evidenceIds: the id of the evidence.
478# evidenceFilenames: the filename of the evidence.
479removeEvidenceFromTestRunStep(testRunId: String!, stepId: String!, iterationRank: String, evidenceIds: [String], evidenceFilenames: [String]): RemoveEvidenceResult
480
481# Mutation used to add defects to a Test Run Step.
482#
483# Arguments
484# testRunId: The id of the Test Run.
485# stepId: the id of the Test Run Step.
486# issues: the ids or keys of the defects.
487# iterationRank: the rank of the iteration.
488addDefectsToTestRunStep(testRunId: String!, stepId: String!, issues: [String], iterationRank: String): AddDefectsResult
489
490# Mutation used to remove defects from a Test Run.
491#
492# Arguments
493# testRunId: The id of the Test Run.
494# stepId: the id of the Test Run Step.
495# issues: the ids or keys of the defects.
496# iterationRank: the rank of the iteration.
497removeDefectsFromTestRunStep(testRunId: String!, stepId: String!, issues: [String]!, iterationRank: String): RemoveDefectsResult
498
499# Mutation used to update the comment of a Test Run Step.
500#
501# Arguments
502# testRunId: The id of the Test Run.
503# stepId: the id of the Test Run Step.
504# comment: the comment of the Test Run Step.
505# iterationRank: the rank of the iteration.
506updateTestRunStepComment(testRunId: String!, stepId: String!, comment: String!, iterationRank: String): String
507
508# Mutation used to update the status of a Test Run Step.
509#
510# Arguments
511# testRunId: The id of the Test Run.
512# stepId: the id of the Test Run Step.
513# status: the id or name of the status of the Test Run.
514# iterationRank: the rank of the iteration.
515updateTestRunStepStatus(testRunId: String!, stepId: String!, status: String!, iterationRank: String): UpdateTestRunStepStatusResult
516
517# Mutation used to update the status of a Test Run Example.
518#
519# Arguments
520# exampleId: the id of the Test Run Example.
521# status: the id or name of the status of the Test Run.
522updateTestRunExampleStatus(exampleId: String!, status: String!): UpdateTestRunExampleStatusResult
523
524# Mutation used to update the status of a Test Run iteration.
525#
526# Arguments
527# testRunId: The id of the Test Run.
528# iterationRank: The rank of the iteration.
529# status: the id or name of the status of the iteration.
530updateIterationStatus(testRunId: String!, iterationRank: String!, status: String!): UpdateIterationStatusResult
531
532# Mutation used to set the timer in Test Run. This will start, pause or stop the timer in Test Run.
533#
534# Arguments
535# testRunId: the id of the Test Run.
536# running: to start (true) or pause (false) the timer
537# reset: to stop the timer
538setTestRunTimer(testRunId: String!, running: Boolean, reset: Boolean): String
539
540}