clone_test_case
Clone a test case in Zephyr Scale: replicates all fields except execution history and attachments, and creates a copy with fresh step IDs.
Instructions
Clone a Zephyr Scale test case within its project — composite read+create: reads the source test case and creates a copy with the same objective, precondition, status, priority, owner, labels, custom fields, parameters and (by default) test script. Step ids are never carried over (the copy gets fresh steps), and execution history/attachments are NOT copied. The copy's name defaults to ' (copy)'; folder defaults to the source folder. Returns { key, url, sourceKey }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the copy (defaults to '<source name> (copy)') | |
| folder | No | Folder path for the copy, starting with '/' (defaults to the source folder; must exist) | |
| testCaseKey | Yes | Key of the SOURCE test case, e.g. PROJ-T123 | |
| includeScript | No | Copy the test script too (default true) |