TFS & Visual Studio ALM – by Neno Loje

(formerly Team System, VSTS)

Changing the state of multiple work items (command line)

February 27th, 2011 · No Comments · TFS Work Item Tracking, Tools and Utilities

Using the Team Foundation Power Tools (TFPT) you can…

1. Query work items using the command line:

tfpt query /format:id /wiql:”SELECT [System.Id] FROM WorkItems WHERE [System.TeamProject] = ‘MyProject‘  AND  [System.WorkItemType] = ‘Bug‘  AND  [System.State] = ‘Active‘  AND  [System.Reason] = ‘New‘” /collection:http://servername:8080/tfs

2. And by adding the pipe command you can change the work items returned by the query:

(… command from above …) | tfpt workitem /update @ /fields:”State=Resolved;Reason=Fixed


No Comments so far ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment