How to use TFS PowerShell to get list of changesets and associated work items?

后端 未结 2 1790
难免孤独
难免孤独 2021-01-31 21:29

I\'m a novice with the PowerShell and TFS cmdlets and I\'m trying to retrieve a list of changesets in an area path, and their associated work items.

I\'ve got as far as

2条回答
  •  滥情空心
    2021-01-31 21:59

    Yes, you're on the right track. Try this as a way to view workitems associated with a changeset:

    Get-TfsItemHistory "$/Project/Branch" -Version "D01/12/10~" -Recurse | 
        Select ChangesetId -exp WorkItems | 
        Format-Table Id,Title -GroupBy ChangesetId -Auto
    

提交回复
热议问题