【发布时间】:2015-05-27 05:54:13
【问题描述】:
我正在使用 TFPT.exe 和 powershell 查询 TFS,如下所示:
$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 }
在上面的代码中,我能够按预期查看数据,但我正在尝试创建数据并将其复制到没有发生的 Excel 工作表中。
谁能帮我把输出数据复制到excel表或xml格式中。请帮忙
谢谢。
【问题讨论】:
-
该代码生成什么,只是一个多行字符串或字符串数组?还是输出带有属性的对象,还是数据表对象?
标签: powershell tfs-workitem tfs-power-tools