--- description: Start work on a Jira ticket — fetch details via Atlassian MCP, create branch, plan implementation, set up todos. Use /jira PROJ-123 to begin. arguments: - name: ticket description: Jira ticket key (e.g., PROJ-123) required: true --- # Jira Ticket Workflow You are helping the user start work on a Jira ticket. Follow this workflow: ## Step 1: Fetch Ticket Details Use the Atlassian MCP to get the ticket information: ``` mcp_atlassian_getIssue issueIdOrKey: "" ``` Extract and present: - **Summary**: The ticket title - **Description**: Full description - **Type**: Bug, Story, Task, etc. - **Priority**: High, Medium, Low - **Status**: Current status - **Labels/Components**: Any relevant tags - **Acceptance Criteria**: If present in description ## Step 2: Create Git Branch Based on the ticket type and summary, create an appropriately named branch: | Ticket Type | Branch Prefix | |-------------|---------------| | Bug | `fix/` | | Story/Task | `feat/` | | Improvement | `improve/` | | Hotfix | `hotfix/` | Branch naming convention: `/-` Example: `feat/PROJ-123-add-user-authentication` Use the git-branch skill to create the branch: ``` Use the git-branch skill to create branch: ``` ## Step 3: Analyze & Plan 1. **Understand the requirements** - Parse the description and acceptance criteria 2. **Identify affected areas** - What files/components will likely need changes 3. **Create implementation plan** - Break down into actionable steps ## Step 4: Set Up Todo List Use the todowrite tool to create a structured todo list based on the ticket: ```json { "todos": [ {"content": "Understand ticket requirements", "status": "completed", "priority": "high"}, {"content": "Create implementation plan", "status": "in_progress", "priority": "high"}, {"content": "", "status": "pending", "priority": "medium"}, ... ] } ``` ## Step 5: Summary Report Provide a concise summary: ``` 📋 Ticket: PROJ-123 - Add User Authentication 🏷️ Type: Story | Priority: High 🌿 Branch: feat/PROJ-123-add-user-authentication 📝 Summary: ✅ Acceptance Criteria: - [ ] Criterion 1 - [ ] Criterion 2 📋 Implementation Plan: 1. First step 2. Second step 3. ... 🚀 Ready to start! What would you like to tackle first? ``` ## Error Handling - If ticket not found: Report error and verify the ticket key - If not in a git repo: Skip branch creation, continue with planning - If Atlassian MCP unavailable: Ask user to provide ticket details manually ## Notes - Always confirm the branch name before creating - Link commits back to the ticket using the ticket key in commit messages - Consider adding the ticket key to PR titles when ready