getCases
Retrieve a filtered list of test cases from a TestRail project and suite, returning basic fields for performance. Use filters like priority, type, section, or creator to narrow results, then get full case details with getCase.
Instructions
Retrieves test cases list with basic fields only (excludes steps/expected results for performance). REQUIRED: projectId, suiteId. OPTIONAL: createdBy, filter, limit (default 50), milestoneId, offset (default 0), priorityId, refs, sectionId, templateId, typeId, updatedBy, labelId. Use getCase for full details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refs | No | A single Reference ID (e.g. TR-1, 4291, etc.) —requires TestRail 6.5.2 or later | |
| limit | No | The number of test cases the response should return (The response size is 50 by default) —requires TestRail 6.7 or later | |
| filter | No | Only return cases with matching filter string in the case title | |
| offset | No | Where to start counting the tests cases from (the offset)—requires TestRail 6.7 or later | |
| typeId | No | A comma-separated list of case type IDs to filter by | |
| labelId | No | A comma-separated list of label IDs to filter by | |
| suiteId | Yes | TestRail Suite ID | |
| createdBy | No | A comma-separated list of creators (user IDs) to filter by | |
| projectId | Yes | TestRail Project ID | |
| sectionId | No | The ID of a test case section | |
| updatedBy | No | A comma-separated list of user IDs who updated test cases to filter by | |
| priorityId | No | A comma-separated list of priority IDs to filter by | |
| templateId | No | A comma-separated list of template IDs to filter by —requires TestRail 5.2 or later | |
| milestoneId | No | A comma-separated list of milestone IDs to filter by (not available if the milestone field is disabled for the project) |