Pull latest changes from Jira (like git pull). Imports status, priority, sprint, and comments.
Pull latest changes from Jira for your current increment. Use when you need to sync status, priority, sprint, and comments from Jira (like `git pull`).
/plugin marketplace add anton-abyzov/specweave/plugin install sw-jira@specweaveUsage: /sw-jira:pull [increment-id]
Purpose: Pull latest changes from Jira to your local increment (like git pull)
# Pull for current/active increment
/sw-jira:pull
# Pull for specific increment
/sw-jira:pull 0005
| Field | Behavior |
|---|---|
| Status | External ALWAYS wins (QA/stakeholder decisions) |
| Priority | External wins (stakeholder prioritization) |
| Sprint | Updated if changed in Jira |
| Comments | New team comments imported to notes |
| Assignee | Updated if changed |
| Story Points | Imported if set |
| Jira Status | SpecWeave Status |
|---|---|
| To Do | draft |
| In Progress | in-progress |
| Code Review | implemented |
| In Review | implemented |
| QA / Testing | in-qa |
| Done / Closed | completed |
| Blocked | blocked |
| Cancelled | cancelled |
When user runs this command:
const incrementId = args.incrementId || await findActiveIncrement();
const metadata = JSON.parse(await fs.readFile(
`.specweave/increments/${incrementId}/metadata.json`, 'utf-8'
));
const jiraIssueKey = metadata?.external_sync?.jira?.issueKey;
if (!jiraIssueKey) {
console.log(`Not linked to Jira. Link manually or use: /sw-jira:sync ${incrementId}`);
return;
}
Use Task tool with subagent_type: "specweave-jira:jira-manager:jira-manager"
Prompt: "Pull changes from Jira for increment {increment-id}.
Issue: {jiraIssueKey}
Steps:
1. Fetch issue {jiraIssueKey} via Jira REST API
2. Compare Jira status vs local status
3. Apply conflict resolution (EXTERNAL WINS for status/priority)
4. Import new comments to increment notes
5. Update sprint/assignee in metadata
6. Display what changed"
Pulled from Jira
Issue: PROJ-123
Project: My Project
Changes Applied:
Status: In Progress -> Done (mapped to: completed)
Priority: Medium -> High
Sprint: Sprint 23 -> Sprint 24
Comments: 3 new imported
Last synced: 2025-12-04 10:30:00
URL: https://mycompany.atlassian.net/browse/PROJ-123
CRITICAL: External tool status ALWAYS wins.
| Scenario | Winner | Reason |
|---|---|---|
| Status differs | External | QA/stakeholder decisions |
| Priority differs | External | Stakeholder prioritization |
| Sprint differs | External | Sprint planning decisions |
User: /sw-jira:pull
Claude:
Pulling from Jira...
Increment: 0005-payment-integration
Issue: PROJ-123
Changes Applied:
Status: In Progress -> Done (completed)
Pull complete!
User: /sw-jira:pull 0005
Claude:
Pulling from Jira...
Increment: 0005-payment-integration
Issue: PROJ-123
Already up to date!
Last synced: 5 minutes ago
| Command | Purpose |
|---|---|
/sw-jira:push | Push local changes to Jira |
/sw-jira:sync | Two-way sync (pull + push) |
/sw-jira:import-boards | Import Jira boards |