Zephyr: Create Folder
zephyr_create_folderCreate folders in a Zephyr project to organize test cases, test plans, or test cycles. Specify the project key, folder type, and name to structure testing artifacts.
Instructions
Create a folder called 'Axial Pump Tests' in the project SA for organizing test cases
Toolset: Folders
Parameters:
parentId (number): Folder ID of the parent folder. Must be
nullfor root folders.name (string) required: Folder name. Folder name must not contain
/and\characters.projectKey (string) required: Jira project key.
folderType (string) required: Valid values:
"TEST_CASE","TEST_PLAN","TEST_CYCLE"
Examples:
Create a root Folder in project SA for organizing test cases
{
"parentId": null,
"name": "Axial Pump Tests",
"projectKey": "SA",
"folderType": "TEST_CASE"
}Expected Output: The newly created Folder with its ID and self link
Create a sub-folder under folder ID 5 in the project MM2 for test plans related to pumps
{
"parentId": 5,
"name": "Pump-related Test Plans",
"projectKey": "MM2",
"folderType": "TEST_PLAN"
}Expected Output: The newly created Folder with its ID and self link
Create a Folder called 'Regression Cycles' in project TIS for organizing test cycles
{
"parentId": null,
"name": "Regression Cycles",
"projectKey": "TIS",
"folderType": "TEST_CYCLE"
}Expected Output: The newly created Folder with its ID and self link
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Folder name. Folder name must not contain `/` and `\` characters. | |
| parentId | No | Folder ID of the parent folder. Must be `null` for root folders. | |
| folderType | Yes | Valid values: `"TEST_CASE"`, `"TEST_PLAN"`, `"TEST_CYCLE"` | |
| projectKey | Yes | Jira project key. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The ID of the entity | |
| self | No |