TicketToCode 🚀
Turn Jira tickets into working code using Claude Code — with automated E2E testing via Playwright MCP.
How It Works
- Connect your Jira account
- Select a task from the sidebar
- Click ▶ Full Context — Claude reads your ticket, interviews you, then creates a plan and test cases
- Review and approve the plan
- Claude implements the feature
- Run E2E tests with one click — Playwright MCP agent tests your app visually in a real browser
- Fix failures with 🔧 Fix Failed Tests
Setup
1. Jira Connection
Open the sidebar, enter your Jira domain, email, and API token.
2. CLAUDE.md
Create a CLAUDE.md file in your project root. Claude reads this every session:
## Project Overview
- Framework: Angular with Nx monorepo
- Design system: [your component library]
- Styling: Tailwind with tw- prefix
## Design System Rules
- Always use design system components, never native HTML
- Use tw- classes for all styling
## File Structure
- Components: [your path]
- Services: [your path]
## API
- Base URL: [your API base URL]
3. Playwright MCP
Add to your Claude Code MCP config (~/.claude/claude_desktop_config.json):
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["@playwright/mcp@latest"]
}
}
}
Then install Playwright in your project:
npm install --save-dev @playwright/test --legacy-peer-deps
npx playwright install chromium
4. .gitignore
Add these to your .gitignore:
claude/figma/
e2e/auth.json
Full Session Flow
Select task
↓
▶ Full Context
↓
Claude reads Jira + Notion + Figma + Postman
↓
Interview — Claude asks questions one at a time
You answer → Claude re-evaluates → asks next only if needed
↓
Claude creates:
./claude/plans/TICKET-feature.md
./claude/tests/TICKET-feature.md
↓
📋 Plan Ready appears in sidebar → Review & Approve ↗
↓
Claude implements the feature
↓
Set E2E credentials in sidebar (stored securely, never committed)
↓
▶ Run E2E Tests
↓
Playwright MCP logs in → runs each test visually in Chrome
Checklist updates live: ⏳ → 🔄 → ✅ / ❌
↓
If failures → 🔧 Fix Failed Tests → Claude fixes + re-runs
↓
All green ✅
Prompts
▶ Full Context
Used at the start of a task. Claude will:
- Read the full Jira hierarchy (Epic → Story → Subtask)
- Re-read
CLAUDE.md and follow all rules strictly
- Read any Notion links via MCP
- Read relevant Postman endpoints via MCP
- Read Figma via MCP (screenshots only, never nodes) — or use uploaded screenshots if provided
- Interview you one question at a time until all blockers are resolved
- Create
./claude/plans/TICKET-*.md and ./claude/tests/TICKET-*.md simultaneously
- Wait for plan approval before writing any code
⚡ Quick Fix
Used for follow-ups and bug fixes in the same session. Sends only the subtask description — Claude already has full context. Add optional extra detail if needed.
E2E Testing
E2E tests run via the Playwright MCP browser agent — no spec files written, no selectors needed. Claude looks at the app visually and interacts like a human.
Test Case States
| Icon |
State |
Meaning |
| ⏳ |
Pending |
Not run yet |
| 🔄 |
In Progress |
Agent is running this test now |
| ✅ |
Passed |
Agent confirmed it works |
| ❌ |
Failed |
Agent found a bug — error shown below |
| Button |
When shown |
What it does |
| ▶ Run E2E Tests |
First run |
Logs in, runs all test cases |
| ↺ Re-run All |
After any run |
Resets all to pending, runs again |
| 🔧 Fix Failed Tests |
When failures exist |
Claude fixes code then re-runs failed tests only |
| ⚙ Regenerate |
After any run |
Rewrites test cases from Jira + plan |
| ✦ Create Test Cases |
No tests file found |
Creates ./claude/tests/TICKET-*.md from scratch |
Speed Control
Set in the E2E auth form: Off / Slow / Normal / Fast
Saved securely alongside your credentials.
Credentials
Set once in the sidebar — stored in VS Code secrets, never written to any file or committed to git.
Figma Screenshots
If Figma MCP is hitting quota limits, toggle 🖼 Use screenshots instead of Figma in the action bar. Drag & drop your screenshots — Claude will use them as the design reference instead.
Screenshots are saved to ./claude/figma/TICKET-KEY/ and auto-restored next time you open the same task.
File Structure Created
project/
CLAUDE.md ← your rules (you create this)
claude/
plans/
TICKET-feature-name.md ← implementation plan (Claude creates)
tests/
TICKET-feature-name.md ← test cases (Claude creates)
TICKET-feature-name-results.json ← live test results (Claude writes)
figma/
TICKET-KEY/ ← uploaded screenshots (if used)
e2e/
setup.ts ← Playwright global login setup
auth.json ← saved session (gitignored)
playwright.config.ts ← Playwright config
Coding Rules (injected into every prompt)
- Always use the project's design system — never native HTML components
- If a component doesn't exist in the design system, ask before creating it
- Use
tw- (Tailwind) classes for all styling
- Only write native SCSS if absolutely no other option exists — explain why first
Published by
MostafaKeshk