Updates the team field value settings for a team in an Azure DevOps project.
Set-AdoTeamFieldValue [[-CollectionUri] <string>] [[-ProjectName] <string>] [[-TeamName] <string>] [-DefaultValue] <string> [-Values] <hashtable[]> [[-Version] <string>] [-WhatIf] [-Confirm] [<CommonParameters>]
This cmdlet has the following aliases,
- N/A
This cmdlet updates the team field value settings for a specified team in an Azure DevOps project. Team field values define which work items belong to a team based on the Area Path field.
$params = @{
CollectionUri = 'https://dev.azure.com/my-org'
ProjectName = 'my-project-1'
DefaultValue = 'my-project-1'
Values = @(
@{
value = 'my-project-1\my-team-1'
includeChildren = $false
}
@{
value = 'my-project-1\my-team-2'
includeChildren = $false
}
)
}
Set-AdoTeamFieldValue @paramsUpdates the team field values for the default team in the specified project.
$params = @{
CollectionUri = 'https://dev.azure.com/my-org'
ProjectName = 'my-project-1'
TeamName = 'my-team-1'
DefaultValue = 'my-project-1\my-team-1'
Values = @(
@{
value = 'my-project-1\my-team-1'
includeChildren = $false
}
)
}
Set-AdoTeamFieldValue @paramsUpdates the team field value for team 'my-team-1' in the specified project.
$params = @{
TeamName = 'my-team-1'
DefaultValue = 'my-project-1'
Values = @(
@{
value = 'my-project-1'
includeChildren = $true
}
)
}
Set-AdoTeamFieldValue @paramsUpdates the team field values for team 'my-team-1' where sub-areas are included.
The collection URI of the Azure DevOps collection/organization, e.g., https://dev.azure.com/my-org.
If not specified, the default collection URI from the environment variable $env:DefaultAdoCollectionUri is used.
Type: System.String
DefaultValue: $env:DefaultAdoCollectionUri
SupportsWildcards: false
Aliases:
- N/A
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''The ID or name of the project.
If not specified, the default project from the environment variable $env:DefaultAdoProject is used.
Type: System.String
DefaultValue: $env:DefaultAdoProject
SupportsWildcards: false
Aliases:
- ProjectId
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''The ID or name of the team within the project. If not specified, the default team is used.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- TeamId
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''The default team field value for the team.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- N/A
ParameterSets:
- Name: (All)
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''An array of team field values to set for the team. Each value should have a 'value' property (string) and 'includeChildren' property (boolean).
Type: System.Collections.Hashtable[]
DefaultValue: ''
SupportsWildcards: false
Aliases:
- N/A
ParameterSets:
- Name: (All)
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''The API version to use for the request.
Type: System.String
DefaultValue: '7.1'
SupportsWildcards: false
Aliases:
- ApiVersion
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues:
- '7.1'
- '7.2-preview.1'
HelpMessage: ''This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
- N/A
-
Requires authentication to Azure DevOps. Use
Set-AdoDefaultto configure default organization and project values. -
The cmdlet automatically retrieves authentication through
Invoke-AdoRestMethodwhich callsNew-AdoAuthHeader. -
This cmdlet supports
-WhatIfand-Confirmparameters for safe execution. -
Each value in the Values parameter must contain both 'value' (string) and 'includeChildren' (boolean) properties.