Skip to content

Allow to Update-VSTeamWorkItem to add relations with other work items #518

@mnieto

Description

@mnieto

Proposal

Add a similar parameter as existing AdditionalFields, for example -Relations. This parameter can be a hashtable like this:

$rel = @(
 [pscustomobject]@{
   Relation = "Parent"
   Id = 193812
   Operation = "Add"
 },
 [pscustomobject]@{
   Relation = "Related"
   Id = 123
   Operation = "Add"
 }
)
Update-VSTeamWorkItem -id 555 -Relations $rel

Solved Problem

This will allow to simplify the process to udpate work items with related ones

Additional info / code snippets?

There is a basic example of this in the Add-VSTeamWorkItem cmdlet using the -ParentId parameter. But this feature will allow to define additional relationships for a work item

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprovements that do not include new featuresfeature requestfor new feature requests that do not just improve things

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions