OBJECT
createFolder
link GraphQL Schema definition
1 Mutation createFolder { 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. 13 String, : String, : String!, : [String], : [String]): ActionFolderResult ( : 14 15 }
link Example
The mutation below will create a new Folder.
mutation { createFolder( projectId: "10000", path: "/generic" ) { folder { name path testsCount } warnings } }
The mutation below will create a new Folder and add tests to it.
mutation { createFolder( projectId: "10000", path: "/generic", testIssueIds: ["10002","12324","12345"] ) { folder { name path testsCount } warnings } }
The mutation below will create a new Folder and add tests and/or preconditions to it.
mutation { createFolder( projectId: "10000", path: "/generic", issueIds: ["10002","12324","12345"] ) { folder { name path testsCount issuesCount preconditionsCount } warnings } }
Note: Use createFolder with testIssueIds (in which all ids must be from Tests) OR with issueIds (which can be eiter Test ids and/or Precondition ids), but not with both.