简体   繁体   English

使用PowerShell从TFS中的发布项获取GA日期

[英]Get GA date from the release items in TFS using powershell

Can you please tell me how to fetch the GA Date or Test Pass Start time columns data from tfs using powershell. 您能否告诉我如何使用PowerShell从tfs获取GA日期或测试通过开始时间列数据。

In which class i can find these properties so i can fetch data. 在哪个类中,我可以找到这些属性,以便我可以获取数据。

在此输入图像描述 Thanks 谢谢

You'll be looking for the WorkItemStore.GetWorkItem().Fields["Fieldname"] in the TFS Client Object Model or the similar functionality in the rest API : depending on your TFS version and source platform. 您将在TFS客户端对象模型中查找WorkItemStore.GetWorkItem().Fields["Fieldname"]其他API中的类似功能 :取决于您的TFS版本和源平台。

Since Powershell can call into .NET Objects you can use the TFS Client Object Model. 由于Powershell可以调用.NET对象,因此您可以使用TFS客户端对象模型。 OR you can use the Invoke-RestMethod to interact with the REST APIs. 或者您可以使用Invoke-RestMethod与REST API进行交互。

If you're looking for a more powershell aligned method, look at the TFSCmdLets . 如果您正在寻找更多PowerShell对齐方法,请查看TFSCmdLets It returns a TFS Client Object Model instance of the WorkItem class, so the first example code will provide more information on what to expect. 它返回 WorkItem类的TFS客户端对象模型实例 ,因此第一个示例代码将提供有关预期内容的更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM