Retrieves and displays Azure DevOps work item details including description, acceptance criteria, related work, and current status.
Retrieves Azure DevOps work item details and saves them for development reference.
/plugin marketplace add rafaelkamimura/claude-tools/plugin install rafaelkamimura-claude-tools@rafaelkamimura/claude-toolsRetrieves and displays Azure DevOps work item details including description, acceptance criteria, related work, and current status.
This command requires Azure DevOps MCP server to be installed and configured.
If not installed, follow: https://github.com/microsoft/azure-devops-mcp-server
Check if work item number was provided as argument.
If no work item number provided: Output: "Usage: /fetch-azure-task [work_item_number]
Example: /fetch-azure-task 12345" Exit command.
Use mcp__azuredevops__get_work_item tool (if available):
If tool not available: Output: "Azure DevOps MCP server not configured.
Install: https://github.com/microsoft/azure-devops-mcp-server
Add to ~/.claude/mcp.json: { "mcpServers": { "azuredevops": { "command": "npx", "args": ["-y", "@azure/azure-devops-mcp-server"], "env": { "AZURE_DEVOPS_ORG_URL": "https://dev.azure.com/your-org\", "AZURE_DEVOPS_PAT": "your-personal-access-token" } } } }" Exit command.
If work item not found or access denied: Output: "Work item [number] not found or access denied.
Check:
Extract from work item response:
Output work item details in structured format:
"# Azure DevOps Work Item #[ID]
State: [State] Assigned To: [Assignee] Priority: [Priority] Area: [Area Path] Iteration: [Iteration] Tags: [Tags]
Created: [Created Date] Updated: [Updated Date]
[Work item description]
[Acceptance criteria if available, or "No acceptance criteria defined"]
[List of related items, or "No related work items"]
Work item context has been loaded. Use this information to guide your implementation. "
Use Bash tool to create task history directory:
mkdir -p .claude/azure-tasksUse Write tool to save work item context to .claude/azure-tasks/work-item-[ID].md with the formatted content from Step 4.
Use Bash tool to update gitignore:
grep -q "^.claude/azure-tasks/" .gitignore || echo ".claude/azure-tasks/" >> .gitignoreOutput: "Work item details saved to: .claude/azure-tasks/work-item-[ID].md
Ready to start development!"
If Azure DevOps API request fails:
If work item ID is not a number:
If PAT lacks permissions:
/fetch-azure-task [ID] → development → /update-azure-task [ID] → /close-azure-task [ID]
Work item details are saved to .claude/azure-tasks/work-item-[ID].md for reference throughout development.