create_test_case
Add a test case to a suite, automatically creating the folder/suite hierarchy when needed. Include test steps, expected results, tags, custom fields, and external links for full documentation.
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 to use sensible defaults (Draft, Medium).
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 - defaults to "Draft". Only specify if user explicitly requests a different status. Valid values vary by project (typically: Draft, Ready, Approved, Deprecated). | Draft |
| 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 - defaults to "Medium". Only specify if user explicitly requests a different priority. Valid values vary by project (typically: Low, Medium, High, Critical). | Medium |
| 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. |