I am querying TFS with TFPT.exe and powershell as shown below:
$TFSSERVER = "http://tfsserveraddress"
Function Get-WorkItem {
$query = "SELECT [System.Id], [System.Title], [System.State], [Completed Work] FROM WorkItems " +
"WHERE [System.AssignedTo] = 'xyz ' " +
"AND [System.State] <> 'Closed' " +
"AND [System.State] <> 'Resolved' " +
"ORDER BY [System.Id]"
tfpt query /collection:$TFSSERVER /wiql:$query /include:data >work.xls }
In the above code I am able to view the data as expected but I am trying to create and copy the data into an excel sheet which is not happening.
Can anyone please help me how to copy the output data into an excel sheet or in xml format.Pleas ehelp
Thank you.