| name | jira-post-qa-test-plan |
| description | Generate and post a Jira QA Test Plan comment using a strict section format. Invoke for actions like "post QA plan", "add test plan comment", or "prepare QA handoff". |
| user-invocable | true |
Skill: Jira Post QA Test Plan
Purpose
Create and post the required QA Test Plan comment for ticket validation.
Required Inputs
Source data used to generate the QA plan:
- ticket_id
- scope
- preconditions
- test_case_inputs
- regression_risk_level
- regression_risk_justification
- pass_criteria
Integration & Authentication
Try MCP first: Use available Jira MCP tools (e.g. addCommentToJiraIssue).
Fallback to REST API with basic auth. Required env vars: JIRA_URL, JIRA_USERNAME, JIRA_API_TOKEN.
Stop and report if any env var is missing.
Required Section Order
QA Test Plan
Test Objective
Scope
Test Data / Preconditions
Test Cases
Regression Risk
Pass Criteria
Evidence Required
Rules
- Keep output concise, formal, and execution-ready.
Test Cases must be presented as a markdown table for fast reference.
Test Cases table columns (in order): ID, Scenario, Preconditions, Steps, Expected Result, Priority.
Priority values must be P1 or P2.
- Every test case must include explicit pass/fail expected result wording.
Regression Risk must include level (Low/Medium/High) and one-line justification.
Pass Criteria must be measurable (e.g., "all P1/P2 test cases pass").
Evidence Required must be presented as a markdown table with columns: Evidence ID, Artifact, Mapped Test Case IDs, Notes.
Required table header rows:
- Test Cases:
| ID | Scenario | Preconditions | Steps | Expected Result | Priority |
- Evidence Required:
| Evidence ID | Artifact | Mapped Test Case IDs | Notes |
Required Flow
- Perform the integration and authentication checks defined above. Stop and report if requirements are not met.
- Generate the QA plan using the required headings in exact order and a formal test-plan tone.
- Format
Test Cases and Evidence Required as markdown tables with required columns.
- Validate section completeness, exact section title order, table headers, explicit expected results, measurable pass criteria, and regression risk level + one-line justification.
- Preview full comment.
- Require
Approve to post.
- Post comment and return metadata.
Guardrails
- Do not post if any required section or validation rule fails.
- Keep language focused: no filler, no implementation deep dive, no speculative statements.
- Use deterministic IDs for traceability (
TC-01, TC-02, EV-01, etc.).
Output Contract
Return:
- comment_preview
- required_confirmation:
Approve
- posted_comment_id
- execution_result
Failure Handling
- If any required section is missing, block posting and return missing fields.
- If table headers are missing/incorrect, block posting and return the required header rows.
- If test cases are missing expected results or use non-
P1/P2 priorities, block posting.
- If posting fails, report error and stop.
- If MCP fails during posting, stop, report the cause, and offer to retry using REST API.