Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Orchestrate Jira workflows end-to-end. Use when building stories with approvals, transitioning items through lifecycle states, or syncing task completion with Jira.
.claude/skills/aiskillstore-jira-workflow/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-08 | ✗→✓ | ▲ Improved | 332% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 464% | 0% |
| case-19 | ✗→✓ | ▲ Improved | 544% | 0% |
| case-20 | ✓→✓ | = Same ✓ | 293% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 296% | 0% |
> Complete workflow management for Jira: building stories (SAFe), getting approvals, and transitioning items through the development lifecycle (To Do → Progressing → Done).
IMPORTANT: This project uses Next-Gen (Team-managed) Jira with custom workflow states. The actual states are:
To Do (backlog)In ReviewProgressing (active work)Out ReviewDoneAlways query available transitions first: GET /rest/api/3/issue/{key}/transitions
Environment Variables:
bashJIRA_EMAIL=your.email@domain.com JIRA_API_TOKEN=your_api_token JIRA_BASE_URL=https://your-org.atlassian.net JIRA_PROJECT_KEY=SCRUM JIRA_BOARD_ID=1
Project Configuration:
parent field for Epic linkscustomfield_10014 for Epic links1. PLAN: Analyze task requirements
↓
2. PROPOSE: Present story to user for approval
↓
3. APPROVE: User confirms or modifies
↓
4. CREATE: Issue created in Jira backlog
↓
5. START: Transition to "Progressing" when work begins
↓
6. COMPLETE: Transition to "Done" when work verified
↓
7. SYNC: Update Jira with implementation detailsWhen user requests work, build a SAFe-compliant story proposal:
javascriptfunction buildStoryProposal(task) { return { summary: `As a ${task.persona}, I want ${task.goal}, so that ${task.benefit}`, description: { userStory: `As a **${task.persona}**, I want **${task.goal}**, so that **${task.benefit}**.`, acceptanceCriteria: task.scenarios.map(s => ({ name: s.name, given: s.given, when: s.when, then: s.then })), definitionOfDone: [ 'Code reviewed and approved', 'Unit tests written and passing', 'Integration tests passing', 'Documentation updated', 'Deployed to staging', 'Validated in production' ], technicalNotes: task.technicalNotes || [] }, category: task.category, // authentication, ui, api, database, etc. estimatedComplexity: task.complexity || 'medium', // small, medium, large subtasks: task.subtasks || [] }; }
CRITICAL: Always get user approval before creating Jira items.
Use this prompt pattern:
markdown## Proposed Jira Story **Summary:** As a [persona], I want [goal], so that [benefit] **Category:** [category] **Complexity:** [small/medium/large] ### Acceptance Criteria **Scenario 1: [Name]** - **GIVEN** [precondition] - **WHEN** [action] - **THEN** [expected result] ### Subtasks (if any) 1. [Subtask 1] 2. [Subtask 2] 3. [Subtask 3] --- **Do you want me to create this in Jira?** Options: 1. **Yes, create as-is** - I'll create the story now 2. **Modify** - Tell me what to change 3. **Skip** - Don't create in Jira, just do the work
javascriptconst JIRA_EMAIL = process.env.JIRA_EMAIL; const JIRA_API_TOKEN = process.env.JIRA_API_TOKEN; const JIRA_BASE_URL = process.env.JIRA_BASE_URL; const PROJECT_KEY = process.env.JIRA_PROJECT_KEY; const auth = Buffer.from(`${JIRA_EMAIL}:${JIRA_API_TOKEN}`).toString('base64'); const headers = { 'Authorization': `Basic ${auth}`, 'Content-Type': 'application/json', 'Accept': 'application/json' }; async function createStory(proposal, epicKey = null) { const body = { fields: { project: { key: PROJECT_KEY }, issuetype: { name: 'Story' }, summary: proposal.summary, description: buildADF(proposal.description), labels: [proposal.category.toLowerCase().replace(/\s+/g, '-')] } }; // Link to Epic (Next-Gen project) if (epicKey) { body.fields.parent = { key: epicKey }; } const response = await fetch(`${JIRA_BASE_URL}/rest/api/3/issue`, { method: 'POST', headers, body: JSON.stringify(body) }); if (!response.ok) { const error = await response.text(); throw new Error(`Failed to create story: ${error}`); } const issue = await response.json(); console.log(`Created: ${issue.key} - ${proposal.summary}`); // Create subtasks if any if (proposal.subtasks?.length > 0) { for (const subtask of proposal.subtasks) { await createSubtask(issue.key, subtask); await delay(100); // Rate limiting } } return issue; } async function createSubtask(parentKey, summary) { const body = { fields: { project: { key: PROJECT_KEY }, issuetype: { name: 'Subtask' }, // Note: 'Subtask' for Next-Gen parent: { key: parentKey }, summary: summary } }; const response = await fetch(`${JIRA_BASE_URL}/rest/api/3/issue`, { method: 'POST', headers, body: JSON.stringify(body) }); if (!response.ok) { const error = await response.text(); throw new Error(`Failed to create subtask: ${error}`); } return response.json(); } function delay(ms) { return new Promise(resolve => setTimeout(resolve, ms)); }
javascriptfunction buildADF(content) { const sections = []; // User Story Section sections.push({ type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'User Story' }] }); sections.push({ type: 'paragraph', content: [{ type: 'text', text: content.userStory }] }); // Acceptance Criteria Section sections.push({ type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Acceptance Criteria' }] }); for (const scenario of content.acceptanceCriteria) { sections.push({ type: 'heading', attrs: { level: 3 }, content: [{ type: 'text', text: `Scenario: ${scenario.name}` }] }); sections.push({ type: 'bulletList', content: [ { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: `GIVEN ${scenario.given}`, marks: [{ type: 'strong' }] }] }] }, { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: `WHEN ${scenario.when}`, marks: [{ type: 'strong' }] }] }] }, { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: `THEN ${scenario.then}`, marks: [{ type: 'strong' }] }] }] } ] }); } // Definition of Done Section sections.push({ type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Definition of Done' }] }); sections.push({ type: 'bulletList', content: content.definitionOfDone.map(item => ({ type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: `[ ] ${item}` }] }] })) }); // Technical Notes (if any) if (content.technicalNotes?.length > 0) { sections.push({ type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Technical Notes' }] }); sections.push({ type: 'bulletList', content: content.technicalNotes.map(note => ({ type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: note }] }] })) }); } return { type: 'doc', version: 1, content: sections }; }
javascriptasync function getTransitions(issueKey) { const response = await fetch( `${JIRA_BASE_URL}/rest/api/3/issue/${issueKey}/transitions`, { headers } ); if (!response.ok) { throw new Error(`Failed to get transitions: ${response.status}`); } const data = await response.json(); return data.transitions; }
javascriptasync function transitionTo(issueKey, targetState) { // Get available transitions const transitions = await getTransitions(issueKey); // Find the transition to target state const transition = transitions.find(t => t.to.name.toLowerCase() === targetState.toLowerCase() || t.name.toLowerCase() === targetState.toLowerCase() ); if (!transition) { console.log(`Available transitions for ${issueKey}:`); transitions.forEach(t => console.log(` - ${t.name} → ${t.to.name}`)); throw new Error(`No transition to "${targetState}" found`); } // Execute the transition const response = await fetch( `${JIRA_BASE_URL}/rest/api/3/issue/${issueKey}/transitions`, { method: 'POST', headers, body: JSON.stringify({ transition: { id: transition.id } }) } ); if (!response.ok) { const error = await response.text(); throw new Error(`Failed to transition: ${error}`); } console.log(`${issueKey} transitioned to ${targetState}`); return true; }
javascript// Start work on a story (To Do → Progressing) async function startWork(issueKey) { await transitionTo(issueKey, 'Progressing'); console.log(`Started: ${issueKey}`); } // Complete a story (Progressing → Done) async function completeWork(issueKey) { await transitionTo(issueKey, 'Done'); console.log(`Completed: ${issueKey}`); } // Move back to backlog (any state → To Do) async function moveToBacklog(issueKey) { await transitionTo(issueKey, 'To Do'); console.log(`Moved to backlog: ${issueKey}`); } // Reopen a completed issue (Done → To Do) async function reopenWork(issueKey) { await transitionTo(issueKey, 'To Do'); console.log(`Reopened: ${issueKey}`); }
javascriptasync function addComment(issueKey, comment) { const body = { body: { type: 'doc', version: 1, content: [ { type: 'paragraph', content: [{ type: 'text', text: comment }] } ] } }; const response = await fetch( `${JIRA_BASE_URL}/rest/api/3/issue/${issueKey}/comment`, { method: 'POST', headers, body: JSON.stringify(body) } ); if (!response.ok) { throw new Error(`Failed to add comment: ${response.status}`); } console.log(`Comment added to ${issueKey}`); return response.json(); }
javascriptasync function addImplementationDetails(issueKey, details) { const content = [ { type: 'heading', attrs: { level: 3 }, content: [{ type: 'text', text: 'Implementation Details' }] }, { type: 'paragraph', content: [{ type: 'text', text: `Completed: ${new Date().toISOString()}` }] } ]; if (details.files?.length > 0) { content.push( { type: 'heading', attrs: { level: 4 }, content: [{ type: 'text', text: 'Files Modified' }] }, { type: 'bulletList', content: details.files.map(f => ({ type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: f }] }] })) } ); } if (details.commits?.length > 0) { content.push( { type: 'heading', attrs: { level: 4 }, content: [{ type: 'text', text: 'Commits' }] }, { type: 'bulletList', content: details.commits.map(c => ({ type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: c }] }] })) } ); } if (details.notes) { content.push( { type: 'heading', attrs: { level: 4 }, content: [{ type: 'text', text: 'Notes' }] }, { type: 'paragraph', content: [{ type: 'text', text: details.notes }] } ); } const body = { body: { type: 'doc', version: 1, content } }; const response = await fetch( `${JIRA_BASE_URL}/rest/api/3/issue/${issueKey}/comment`, { method: 'POST', headers, body: JSON.stringify(body) } ); return response.json(); }
javascriptasync function fullWorkflowCycle(task) { // 1. Build proposal const proposal = buildStoryProposal(task); // 2. Present for approval (use AskUserQuestion tool) const approved = await presentForApproval(proposal); if (!approved) { console.log('Story creation skipped by user'); return null; } // 3. Create in Jira const issue = await createStory(proposal, task.epicKey); console.log(`Created: ${issue.key}`); // 4. Start work (transition to In Progress) await startWork(issue.key); // 5. Do the actual work (your implementation here) const result = await doTheWork(task); // 6. Add implementation details await addImplementationDetails(issue.key, { files: result.modifiedFiles, commits: result.commits, notes: result.notes }); // 7. Complete the work await completeWork(issue.key); return issue; }
When working on Jira stories, sync with TodoWrite:
markdownTodoWrite todos: [ { "content": "SCRUM-55: Create signup API", "status": "in_progress", "activeForm": "Working on SCRUM-55" }, { "content": "SCRUM-56: Create login API", "status": "pending", "activeForm": "Waiting for SCRUM-55" }, { "content": "SCRUM-57: Create logout API", "status": "pending", "activeForm": "Waiting for SCRUM-56" } ] As each task completes: 1. Mark TodoWrite item as completed 2. Transition Jira issue to Done 3. Add implementation comment to Jira 4. Move to next task
javascript// When starting a task async function startTask(issueKey) { // 1. Transition Jira to Progressing await startWork(issueKey); // 2. Update TodoWrite (in Claude Code) // TodoWrite: Mark as in_progress return issueKey; } // When completing a task async function completeTask(issueKey, details) { // 1. Add implementation comment await addImplementationDetails(issueKey, details); // 2. Transition Jira to Done await completeWork(issueKey); // 3. Update TodoWrite (in Claude Code) // TodoWrite: Mark as completed return issueKey; }
| From | To | Transition Name | Typical Use | |------|-----|-----------------|-------------| | To Do | Progressing | "Progressing" | Starting work | | To Do | In Review | "In Review" | Needs review first | | Progressing | Done | "Done" | Work complete | | Progressing | To Do | "To Do" | Blocked/deprioritized | | Done | To Do | "To Do" | Reopening |
Available States: To Do, In Review, Progressing, Out Review, Done
Note: Always query transitions first - they vary by issue type and current state.
| Action | Method | Endpoint | |--------|--------|----------| | Create Issue | POST | /rest/api/3/issue | | Get Issue | GET | /rest/api/3/issue/{key} | | Update Issue | PUT | /rest/api/3/issue/{key} | | Delete Issue | DELETE | /rest/api/3/issue/{key} | | Get Transitions | GET | /rest/api/3/issue/{key}/transitions | | Do Transition | POST | /rest/api/3/issue/{key}/transitions | | Add Comment | POST | /rest/api/3/issue/{key}/comment | | Search | GET | /rest/api/3/search/jql?jql=... |
javascriptasync function safeJiraOperation(operation, issueKey) { try { return await operation(); } catch (error) { console.error(`Jira operation failed for ${issueKey}: ${error.message}`); // Common error patterns if (error.message.includes('404')) { console.log('Issue not found - may have been deleted'); } if (error.message.includes('401')) { console.log('Authentication failed - check API token'); } if (error.message.includes('403')) { console.log('Permission denied - check project access'); } if (error.message.includes('400')) { console.log('Bad request - check field names and values'); } throw error; } }
Ready-to-run scripts are available in both Node.js and Python:
bash# From the .claude/skills/jira directory node scripts/run.js workflow demo SCRUM-100 # Demo full workflow node scripts/run.js test # Test authentication # Force specific runtime node scripts/run.js --python workflow demo SCRUM-100 node scripts/run.js --node workflow demo SCRUM-100
bash# Node.js node scripts/jira-workflow-demo.mjs demo SCRUM-100 node scripts/jira-workflow-demo.mjs start SCRUM-100 node scripts/jira-workflow-demo.mjs complete SCRUM-100 node scripts/jira-workflow-demo.mjs reopen SCRUM-100 node scripts/jira-workflow-demo.mjs status SCRUM-100 # Python (recommended on Windows) python scripts/jira-workflow-demo.py demo SCRUM-100 python scripts/jira-workflow-demo.py start SCRUM-100 python scripts/jira-workflow-demo.py complete SCRUM-100 python scripts/jira-workflow-demo.py reopen SCRUM-100 python scripts/jira-workflow-demo.py status SCRUM-100
| Script | Node.js | Python | Purpose | |--------|---------|--------|---------| | Workflow Demo | jira-workflow-demo.mjs | jira-workflow-demo.py | Full To Do → Progressing → Done demo | | Add Subtasks | jira-add-subtasks.mjs | jira-add-subtasks.py | Create subtasks under a story | | Create Story | jira-create-one.mjs | jira-create-one.py | Create single story | | Bulk Create | jira-bulk-create.mjs | jira-bulk-create.py | Create from git commits |
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-20 | pass→pass | 18,931 | 9,462 | -50% | 1 | 1 | 0% | 1,787 | 7,024 | +293% | 0 | 0 | — |
case-01 | fail→fail | 11,746 | 7,310 | -38% | 1 | 1 | 0% | 1,909 | 6,566 | +244% | 0 | 0 | — |
case-02 | fail→fail | 4,997 | 6,917 | +38% | 1 | 1 | 0% | 572 | 5,842 | +921% | 0 | 0 | — |
case-03 | fail→fail | 6,830 | 8,022 | +17% | 1 | 1 | 0% | 623 | 5,838 | +837% | 0 | 0 | — |
case-04 | pass→pass | 8,459 | 4,547 | -46% | 1 | 1 | 0% | 1,590 | 6,292 | +296% | 0 | 0 | — |
case-05 | pass→pass | 8,056 | 4,666 | -42% | 1 | 1 | 0% | 1,396 | 6,110 | +338% | 0 | 0 | — |
case-06 | pass→pass | 8,927 | 4,106 | -54% | 1 | 1 | 0% | 1,726 | 6,209 | +260% | 0 | 0 | — |
case-07 | pass→pass | 7,894 | 6,557 | -17% | 1 | 1 | 0% | 1,526 | 6,748 | +342% | 0 | 0 | — |
case-08 | fail→pass | 9,423 | 6,246 | -34% | 1 | 1 | 0% | 1,514 | 6,545 | +332% | 0 | 0 | — |
case-09 | pass→pass | 8,858 | 4,809 | -46% | 1 | 1 | 0% | 1,691 | 6,234 | +269% | 0 | 0 | — |
case-10 | pass→pass | 13,039 | 7,295 | -44% | 1 | 1 | 0% | 2,080 | 6,606 | +218% | 0 | 0 | — |
case-11 | pass→pass | 12,381 | 7,184 | -42% | 1 | 1 | 0% | 2,252 | 6,761 | +200% | 0 | 0 | — |
case-12 | pass→pass | 9,149 | 5,791 | -37% | 1 | 1 | 0% | 1,820 | 6,611 | +263% | 0 | 0 | — |
case-13 | fail→fail | 7,096 | 2,408 | -66% | 1 | 1 | 0% | 1,134 | 5,798 | +411% | 0 | 0 | — |
case-14 | fail→pass | 6,785 | 2,715 | -60% | 1 | 1 | 0% | 1,032 | 5,819 | +464% | 0 | 0 | — |
case-15 | pass→pass | 15,266 | 13,831 | -9% | 1 | 1 | 0% | 2,989 | 8,230 | +175% | 0 | 0 | — |
case-16 | pass→pass | 16,647 | 6,068 | -64% | 1 | 1 | 0% | 2,615 | 6,460 | +147% | 0 | 0 | — |
case-17 | pass→pass | 10,336 | 5,373 | -48% | 1 | 1 | 0% | 1,645 | 6,210 | +278% | 0 | 0 | — |
case-18 | pass→pass | 8,202 | 6,829 | -17% | 1 | 1 | 0% | 1,473 | 6,668 | +353% | 0 | 0 | — |
case-19 | fail→pass | 6,150 | 2,595 | -58% | 1 | 1 | 0% | 894 | 5,761 | +544% | 0 | 0 | — |
case-21 | pass→pass | 12,551 | 11,216 | -11% | 1 | 1 | 0% | 2,304 | 7,439 | +223% | 0 | 0 | — |
case-22 | pass→pass | 10,156 | 8,733 | -14% | 1 | 1 | 0% | 2,012 | 7,083 | +252% | 0 | 0 | — |
case-23 | pass→pass | 12,379 | 8,892 | -28% | 1 | 1 | 0% | 2,072 | 6,907 | +233% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted, and 21 counted toward the lift figure. The other 2 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +13 percentage points is the difference between those two pass rates over the 21 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.