Last active
August 29, 2015 13:57
-
-
Save v2keener/9347092 to your computer and use it in GitHub Desktop.
Viewing Open Work Items, TFS via PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
Taken from Julian Kay's Blog: | |
http://juliankay.com/development/querying-tfs-with-tfpt-exe-and-powershell/ | |
#> | |
$TFSSERVER = "hq-tfs08-01.branded3.net" | |
Function Get-WorkItem | |
{ | |
$query = "SELECT [System.Id], [System.Title] FROM WorkItems " + | |
"WHERE [System.AssignedTo] = 'Julian Kay' " + | |
"AND [System.State] <> 'Closed' " + | |
"AND [System.State] <> 'Resolved' " + | |
"ORDER BY [System.Id]" | |
tfpt query /collection:$TFSSERVER /wiql:$query /include:data | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment