From Hours to Seconds: Automating Test Execution Tickets

The Challenge
Once test cases are created for a story, QA teams need to create test execution tickets to track which tests have been run and their results. Manually creating these tickets and including all test case details is tedious and error-prone.
Without automation, this becomes a bottleneck that slows down the testing workflow and creates inconsistency.
The Solution
I built a Python-based GitHub Action that automatically creates test execution tickets in Jira. The tool fetches all linked test cases from a story, creates an execution ticket, and includes all test case details—ready for QA execution tracking.
How It Works
1. Initialize Clients
When triggered, the automation:
- Establishes connection to Jira API
- Validates credentials and permissions
- Prepares for ticket creation
2. Create Test Execution
The system creates test execution tickets with:
- All linked test cases included from the story
- Test case details and steps embedded
- Standardized naming conventions
- Pre-configured fields and metadata
- Optional version tracking
3. Link to Stories
Generated test execution tickets are automatically:
- Linked to the original story tickets
- Tagged with execution metadata
- Ready for QA team assignment
- Tracked in test dashboards
The 3-Step Process
Story IDs
↓
[Trigger Automation]
↓
Initialize Jira Clients → Fetch Linked Test Cases → Prepare Test Data
↓
Create Test Execution Tickets (with all test cases included)
↓
Populate Test Steps → Link to Stories → Ready for Execution
↓
Test Execution Tickets Ready with All Test Cases
Key Features
Automated Ticket Creation
- No manual ticket creation
- All test cases automatically included
- Consistent naming and structure across all tickets
- Pre-populated with story context and test details
- Standardized fields and metadata
Smart Linking
- Automatically links to parent story tickets
- Maintains traceability throughout workflow
- Supports version tracking
- Creates audit trail
Technical Architecture
| Component | Details |
|---|---|
| Language | Python |
| Platform | GitHub Actions |
| Input | Story IDs |
| Processing | Jira API client initialization |
| Output | Linked test execution tickets |
Real-World Impact
- Faster Test Planning: Test execution tickets with all test cases created in seconds
- Complete Coverage: All test cases automatically included in execution tickets
- Consistency: Every test execution ticket follows the same structure
- Traceability: Clear links between stories, test cases, and executions
- Scalability: Works for any number of stories and test cases simultaneously
Benefits for QA Teams
- Reduced Manual Work: Eliminate repetitive ticket creation tasks
- Better Organization: Standardized structure makes tracking easier
- Faster Onboarding: New QA members get consistent ticket structure
Use Cases
- Sprint Planning: Create test execution tickets with all test cases for sprint stories
- Release Management: Track test execution across versions with version parameter
- Bulk Testing: Handle multiple stories and their test cases without manual work
- Test Dashboards: Maintain clear hierarchy with test cases embedded in executions
- Test Tracking: Execute and track results for all test cases in one ticket
Workflow Integration
This automation fits perfectly into your Jira workflow:
- Stories are created with acceptance criteria
- Test cases are created and linked to stories (via AI Test Case Generator)
- Trigger test execution creation
- Test execution tickets appear with all test cases included
- QA team executes tests and tracks results
- Results tracked in execution tickets
The Takeaway
Automation removes friction from workflows. By automating test execution ticket creation, QA teams can focus on actual testing instead of administrative overhead.
The future of QA isn’t about managing tickets—it’s about managing quality. Let automation handle the busywork.