Get-WI

Introduction

The Get-WI cmdlet enables to retrieve one workitem. With this CmdLet, you can retrieve a workitem with its id or its uri given a specific version.

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
-id Workitem numeric id
-revision Workitem revision number
-date Workitem revision date
-uri Workitem Uri vstfs:///WorkItemTracking/WorkItem/1

Example with -id

========================================================
Windows PowerShell
PowerShell for Team System
By Noham Choulant http://choulant.blogspot.com
========================================================

PsTFS > : $tfs = tfs colmar
PsTFS > : $wi = get-wi -tfs $tfs -id 1
PsTFS > : $wi

Id                : 1
Uri               : vstfs:///WorkItemTracking/WorkItem/1
Revision          : 1
Revisions         : {Microsoft.TeamFoundation.WorkItemTracking.Client.Revision}
Attachments       : {}
Links             : {}
Store             : Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore
Title             : Set up: Set Permissions
State             : Active
Reason            : New
Rev               : 1
Description       : Add team members to one of the four security groups: Build Services, Project Administrators, Contributors, or Readers. To configu
                    re security, Right-click the team project in Team Explorer, and select 'Team Project Settings,' 'Group Membership'
History           :
ChangedBy         : Administrateur
RevisedDate       : 01/01/9999 00:00:00
ChangedDate       : 22/12/2008 15:19:57
CreatedDate       : 22/12/2008 15:19:57
CreatedBy         : Administrateur
NodeName          : VSTS.Noham
AreaPath          : VSTS.Noham
AreaId            : 1
IterationPath     : VSTS.Noham\Iteration 0
IterationId       : 5

Example with -uri

PSTFS > $w = get-wi -tfs $tfs -uri vstfs:///WorkItemTracking/WorkItem/1
PSTFS > $w


Id                : 1
Uri               : vstfs:///WorkItemTracking/WorkItem/1
Revision          : 1
Revisions         : {Microsoft.TeamFoundation.WorkItemTracking.Client.Revision}
Attachments       : {}
Links             : {}
Store             : Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore
Title             : Set up: Set Permissions
State             : Active
Reason            : New
Rev               : 1
Description       : Add team members to one of the four security groups: Build Services, Project Administrators, Contri
                    butors, or Readers. To configure security, Right-click the team project in Team Explorer, and selec
                    t 'Team Project Settings,' 'Group Membership'
History           :
ChangedBy         : Administrateur
RevisedDate       : 01/01/9999 00:00:00
ChangedDate       : 22/12/2008 15:19:57
CreatedDate       : 22/12/2008 15:19:57
CreatedBy         : Administrateur
NodeName          : VSTS.Noham
AreaPath          : VSTS.Noham
AreaId            : 1
IterationPath     : VSTS.Noham\Iteration 0

Last edited Nov 7, 2009 at 4:00 PM by pc152, version 4

Comments

No comments yet.