Each time that we need to start new projects on Azure DevOps, it’s necessary to create iterations. Often we have created some iterations with 2 weeks each, where we must repeat this same procedure regarding the number of sprints needed for our project. Here there is a perfect case where we should use some kind of automation.
Basically, this script needs the respective Team Name, the start date of the first Sprint, and the number of Sprints. For this example, I fixed a sprint duration in 2 weeks and I used the word Sprint as a prefix.
On this script, I used 2 different commands according to Azure DevOps CLI documentation:
- az boards iteration project create = this command creates an iteration on Team Project;
- az boards iteration team add = this command includes an iteration on respective Team Name.
After PowerShell execution, respective Sprints of my project will be configured correctly:
- Project Settings = interface that sprints are created;
2. Team Settings = interface that we select iterations and assign them to the team.