ado_list_iterations
Retrieve available sprints and iterations from Azure DevOps projects to track development cycles and plan work items.
Instructions
Lista las iteraciones/sprints disponibles en el proyecto
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:615-656 (handler)The tool 'ado_list_iterations' is registered and implemented in src/index.ts. It fetches iterations using the ADO WIT API and formats them into a tree structure.
server.tool( "ado_list_iterations", "Lista las iteraciones/sprints disponibles en el proyecto", {}, async () => { const api = await getWitApi(); const iterations = await api.getClassificationNode( currentProject, witInterfaces.TreeStructureGroup.Iterations, undefined, 10 ); function formatIterations( node: witInterfaces.WorkItemClassificationNode, indent: string = "" ): string { let result = `${indent}${node.name}`; if (node.attributes) { const startDate = node.attributes["startDate"]; const finishDate = node.attributes["finishDate"]; if (startDate || finishDate) { result += ` (${startDate ? new Date(startDate).toLocaleDateString() : "?"} - ${finishDate ? new Date(finishDate).toLocaleDateString() : "?"})`; } } result += "\n"; if (node.children) { for (const child of node.children) { result += formatIterations(child, indent + " "); } } return result; } const result = formatIterations(iterations); return { content: [{ type: "text", text: result }], }; } );