Get-ChangesetByWI

Introduction

The Get-ChangesetByWI cmdlet enables to retrieve all changesets for a given workitem.

Obtain the TFS server using the Get-TFS CmdLet.

Parameters

Name Description Example
-tfs TFS server obtained using Get-TFS $tfs = Get-TFS -rul http://address:8080
-ProjectName Project Name
-WI Element of type WI Get-WI -tfs $tfs -id 350
-WIs Element set of type WI Get-WIs -tfs $tfs

Example for a given workitem


PSTFS > $tfs = Get-TFS colmar
PSTFS > $w = Get-WI -tfs $tfs -id 350

PSTFS > $cs = Get-ChangesetByWI -WI $w
PSTFS > $cs | ft

ArtifactUri WorkItems   VersionCont Changes     Comment     CheckinNote PolicyOverr Committer   CreationDat ChangesetId
                        rolServer                                       ide                     e
----------- ---------   ----------- -------     -------     ----------- ----------- ---------   ----------- -----------
vstfs://... {350}       Microsof... {Change ... Ajout de... CheckinN... PolicyOv... COLMAR\A... 23/12/20...           9
vstfs://... {350}       Microsof... {Change ... Created ... CheckinN... PolicyOv... COLMAR\A... 22/12/20...           2

Example for a workitem set

PSTFS > $ws = Get-WIs -tfs $tfs
PSTFS > $css = Get-ChangesetByWI -WIs $ws
PSTFS > $css | ft

ArtifactUri WorkItems   VersionCont Changes     Comment     CheckinNote PolicyOverr Committer   CreationDat ChangesetId
                        rolServer                                       ide                     e
----------- ---------   ----------- -------     -------     ----------- ----------- ---------   ----------- -----------
vstfs://... {288}       Microsof... {Change ... Merge de... CheckinN... PolicyOv... COLMAR\A... 30/01/20...         121
vstfs://... {350}       Microsof... {Change ... Ajout de... CheckinN... PolicyOv... COLMAR\A... 23/12/20...           9
vstfs://... {350}       Microsof... {Change ... Created ... CheckinN... PolicyOv... COLMAR\A... 22/12/20...           2


Last edited Nov 8, 2009 at 7:48 AM by pc152, version 2

Comments

No comments yet.