Create test case
create_test_caseCreate a test case in a project. Requires project, title and folder; template, lifecycle state, estimate and tags are optional. Folder ids come from get_folders. Tags must already exist (tagIds from get_tags; an unknown id is refused with UNKNOWN_TAG); this tool does not create tags. Free text goes into the template's TEXT fields (get_fields lists them, for example Expected Result); a template without a description field has no field for free text beyond the title.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project": "<project>",
"title": "<title>",
"folder": "<folder>"
},
"name": "create_test_case"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Test case title. | |
| folder | Yes | Folder id to place the case in (required). | |
| tagIds | No | Optional ids of existing tags (from get_tags); unknown ids are refused and no tag is created. | |
| project | Yes | Project id to create the case in. Numeric project id as returned by get_projects (the number in the app URL); a project name is not accepted. | |
| estimate | No | Optional estimate (e.g. '30m'). | |
| templateId | No | Optional template id. | |
| fieldValues | No | Custom field values (e.g. priority, steps). Discover field ids/types/options with get_fields. Each item is { fieldId, value } where value is the field's JSON value (a string for selects like priority; a structured value for STEPS fields, e.g. [{"step_1":"Do X","step_3":"Expect Y"}]). Rich-text fields take plain text or a tiptap document ({type:"tiptap",version:1,doc:{type:"doc",content:[...]}}); valueHtml is optional and is rendered from the document when omitted. Each value must fit its field type (INTEGER a whole number, FLOAT a number, DATE "YYYY-MM-DD", CHECKBOX true/false, DROPDOWN one option value or label, MULTI_SELECT an array of them); a value that does not fit is refused with a tool error naming the field. On update this is a patch: fields you omit keep their current value; send { fieldId, value: null } to clear one. | |
| sourceReference | No | Optional: link the new case to the external issue it was generated from. { systemType (e.g. LINEAR), externalUrl, externalId? }. The link is authored as COVERS, so the case counts as coverage for that issue (TES-343). | |
| lifecycleStateId | No | Optional lifecycle state id. |