How can work items from TFS be exported as XML in

2019-08-07 20:38发布

I've been looking all over the results but couldn't find an answer I have a work item & I need that to be exported into an XML file & store somewhere on my disk. It can be done using Visual studio, but I'm running TFS on Eclipse.

标签: tfs
1条回答
Anthone
2楼-- · 2019-08-07 21:04

(if you're on windows...) You can do this with wiql and the tfpt powertool. e.g.

tfpt query /collection:$coll /wiql:$query02 /include:data /format:xml

team foundation power tools link

this adds a tfpt tool to: C:\Program Files (x86)\Microsoft Team Foundation Server 2013 Power Tools. You can then either write your own wiql (work item query language) or run one of your existing TFS queries. Use the /format:xml switch and you get your xml output. I run the example above in a powershell script and I redirect the output to a tmp folder, but you can run it from a normal cmd window too.

查看更多
登录 后发表回答