Imported from DiasLuc/T3-PortfolioProject-Planner-API (
.codex/skills/jira-api-test-cases/SKILL.md). Install upstream withnpx skills add DiasLuc/T3-PortfolioProject-Planner-API --skill jira-api-test-cases. Copyright stays with the author.
Jira API Test Cases
Use this skill when the user wants to turn a Jira story into API test cases and track those cases as Jira subtasks.
Workflow
Follow this sequence:
- Read the Jira user story and capture its acceptance criteria.
- Read the project's Swagger or OpenAPI definition and identify the endpoint operations that map to the story.
- Define functional test case variations that cover the acceptance criteria.
- Propose the test cases to the user and wait for approval before creating Jira issues.
- After approval, create each test case as a subtask under the user story.
Rules
- Each test case should represent a possible variation of the API use based on the acceptance criteria of the user story.
- Each test case should be represented by a Jira subtask under the user story, with the prefix
[Test Case]. - Each test case should include the sections
Title,Operation (Method and Endpoint),Request Parameters / Headers(if applicable),Request Body(if applicable),Response Status Code, andResponse Body(if applicable). - Each test case should check response codes against their usually expected results, not only against the current project specs or implementation. Example: if trying to register an email that is already registered, the common choice is
409 Conflict, so the test case should expect409even if the current spec and/or code say400.
Working Notes
- Prefer functional coverage over duplicating the same scenario with cosmetic variations.
- Call out when a proposed test case intentionally differs from the current Swagger or implementation so the user knows it reflects common API practice rather than the current project behavior.
- If the story maps to multiple endpoints, group the proposed test cases clearly by endpoint.
- If the Swagger documents a generic validation error for multiple missing-field cases, it is fine to split them into separate test cases when that improves coverage clarity.
Jira Template
Use this structure for each proposed or created test case:
Title
Operation (Method and Endpoint)
<METHOD /path>
Request Parameters / Headers
Path params: ...
Query params: ...
Headers: ...
Request Body
{ ... }
Response Status Code
<status code>
Response Body
{ ... }