How to add all iterations of a project to all teams in that project?
I know how to list all the iterations I want to add to the teams:
az boards iteration project list --depth 2 --query "children[*].children[*].identifier"
I know how to list all teams in a project:
az devops team list --query "[].id"
I know how to add an iteration to a team:
az boards iteration team add --id 76c902xxx-ca2b-4b94-ab06-ce6d3xxx8784 --team 81fxxx72-a384-453b-9ba2-1229xxxba8c6
How to add all iterations (which return the filter above with --depth 2) registered in the project to all teams in that project?
I only know how to add an iteration to a team:
az boards iteration team add --id 76c9084-ca2b-4b94-ab0xxxe6d33b68784 --team 81f0exxxa384-453b-9ba2-1229xxxba8c6
I need to know how to add all iterations to all project teams.
I have used the given PowerShell script to add iterations of a project to all teams in that project.
I am using
--query "children[*].identifier"as per my requirement, you modify it accordingly.I am able to get the expected.