Azure / Azure/azure-cli

az boards area team add with set-as-default parameter bug

Open
#16,756 3 comments 0 reactions 0 assignees View on GitHub
act-platform-engineering-squad DevOps Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Command:**
az boards area team add --org $orgURL --project $Portfolio --team $Team --path $teamPath --set-as-default --include-sub-areas true

When I run the command the first time it sets the area path and sets the default area setting. If the command is run a second time (I ran it looking for error codes that it would throw) the command runs successfully but removes the default area setting leaving the team with no default area path defined.

Additional tests:
1. Running the command again does not turn the setting back on
2. Manually adding another area path sets the new area path as the default
3. Running the command again while second area path (manually created) set as default clears the default area setting on all area paths
4. Running the az boards area team update command with the same parameters as the add command returns an error "Path is not added to team area list"
4a. Running the az boards area team list command for the team shows the area path is added for the team
4b. Checking team settings in Azure DevOps Services shows area path in list

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.