OBJECT

getFolders

link GraphQL Schema definition

1Query getFolders {
2
3# Returns the Folders that are descendants of the given path (including the Folder at that path), whose name contains nameSearch, for the given projectId or testPlanId.
4# Exactly one of projectId or testPlanId must be provided. An error is returned if the given path does not exist.
5#
6#
7#
8# Arguments
9# projectId: the project id of the Folder.
10# testPlanId: the Test Plan id of the Folder.
11# path: the path to search descendant Folders from. If empty, the whole Test Repository is searched.
12# nameSearch: the substring to search for in Folder names. If empty, all Folder names are considered.
13getFolders(projectId: String, testPlanId: String, path: String, nameSearch: String): [SimpleFolderResults]
14
15}

link Example

The query below returns every Folder under the root whose name contains "regression".

{
    getFolders(projectId: "10000", nameSearch: "regression") {
        name
        path
        testsCount
    }
}

The query below returns every Folder under "/generic" (including "/generic" itself).

{
    getFolders(projectId: "10000", path: "/generic") {
        name
        path
        testsCount
    }
}

The query below returns every Folder of the Board of the Test Plan 10010 whose name contains "smoke".

{
    getFolders(testPlanId: "10010", nameSearch: "smoke") {
        name
        path
        testsCount
        issuesCount
    }
}