create_test_case
Create a new test case in a test suite, automatically generating the folder-suite hierarchy when needed. Returns the complete case object with a shareable link.
Instructions
Create a new test case in a test suite. Test cases MUST live inside a suite (not a bare folder). You can provide either: (A) a folderId pointing to an existing suite, or (B) a projectId with optional folderName/suiteName to auto-create the folder→suite hierarchy. If folderId points to a folder (not a suite), a suite is auto-created inside it. Returns the full created case object including shareUrl. Tags are auto-created if they do not exist. IMPORTANT: omit status and priority and the case takes whichever values THIS PROJECT marks as its defaults, which are Draft and Medium only until a project edits them. Call get_project to see what a given project uses.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Tags to assign to the case. New tags are auto-created. | |
| steps | No | Array of test steps with action and expected result | |
| title | Yes | Test case title (required) | |
| status | No | Optional. Omit it and the case takes whichever value the project marks as its default, which is what the UI does. The vocabulary is per-project and a project may have renamed it or added its own, so call get_project for this project list and send a value from it rather than guessing. | |
| folderId | No | Suite (or folder) UUID where the case will be created. If this points to a folder, a suite is auto-created inside it. Alternative: use projectId + folderName + suiteName instead. | |
| priority | No | Optional. Omit it and the case takes whichever value the project marks as its default. The vocabulary is per-project, so call get_project for this project list and send a value from it rather than guessing. | |
| dependsOn | No | Numeric case ID this case depends on | |
| projectId | No | Project UUID. Required when folderId is not provided. Used to find or auto-create the folder→suite hierarchy. | |
| suiteName | No | Name of the suite to find or create inside the folder (default: "General"). Used with projectId when folderId is not provided. | |
| folderName | No | Name of the folder to find or create (default: "General"). Used with projectId when folderId is not provided. | |
| description | No | Detailed description of the test case. Supports Markdown: **bold**, *italic*, ~~strikethrough~~, inline `code`, # / ## / ### headings, "- " bullet and "1. " numbered lists, [text](url) links, and "> " blockquotes. Plain text works too. Images and fenced code blocks are not supported. | |
| customFields | No | Custom field values as key-value pairs | |
| externalLinks | No | Optional list of external ticket links to attach to the created case. Each link is inserted atomically with the case - any failure rolls back the entire creation. For Jira, externalUrl is fetched from the Jira API (just pass the issue key or full /browse/ URL as externalId); for other providers, externalUrl is required. |