create_folder
Create test case, test plan, or test run folders in Zephyr Scale by specifying the full path from root. Missing parent folders are created automatically.
Instructions
Create a Zephyr Scale folder for test cases, test plans or test runs (test cycles). name is the FULL path from the root and must start with "/", e.g. "/Regression/Payments". With recursive=true (default) missing parent folders are created automatically: if the API rejects the full path with 400, every parent prefix is created from the root and the full path is retried. Folders are NOT auto-created by create_test_case / create_test_run — create them with this tool first. The public Server/DC API v1 cannot LIST folders, so keep the numeric id returned by create_folder — rename_folder needs it (otherwise the id can only be found in the Jira UI).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Full folder path from the root, starting with "/", e.g. "/Regression/Payments" | |
| type | Yes | Folder kind: TEST_CASE (test case folders), TEST_PLAN (test plan folders) or TEST_RUN (test cycle folders) | |
| recursive | No | Create missing parent folders automatically on a 400 response (default true). Handled client-side, never sent to the API. | |
| projectKey | No | Jira project key; defaults to ZEPHYR_DEFAULT_PROJECT_KEY |