我如何查询TFS获取特定工作项目的最新信息?(How can I query TFS to get the latest of a specific work item?)

编程入门 行业动态 更新时间:2024-10-27 19:17:05
我如何查询TFS获取特定工作项目的最新信息?(How can I query TFS to get the latest of a specific work item?)

考虑以下层次结构:

1个测试用例工作项目有多个测试结果工作项目。 我可以在TFS中创建一个“工作项目和直接链接”查询,向我展示这个层次结构:

测试用例“客户需要blabla” - 测试结果 - 1/11 // 11 *失败 - 测试结果 - 2/1/11成功* - 测试结果 - 3/1/11 *成功*

是否可以将查询结果限制为最新的测试结果? 所以我想这样做:

测试用例“客户需要blabla” - 测试结果 - 3/1/11 *成功*

请注意,我无法过滤状态字段,因为这些字段未保留...

*欧元日期符号d / mm / yy

Consider the following hierarchy:

1 Test Case work item has multiple Test Result work items. I can make a "Work Items and Direct Links" query in TFS, to show me this hierarchy:

Test Case "Customer needs to blabla" - Test Result - Fail on 1/11//11* - Test Result - Success on 2/1/11* - Test Result - Success on 3/1/11*

Is it possible to limit the query result to the latest Test Result? So I would like to have this:

Test Case "Customer needs to blabla" - Test Result - Success on 3/1/11*

Note that I cannot filter on the State field, because those fields are not maintained...

*Euro date notation d/mm/yy

最满意答案

这是不可能的,使用WIQL。 您将不得不以编程方式进行过滤,以便在恐惧的初始查询后进行过滤。

This is not possible using WIQL. You would have to do it programmatically to filter after the initial query I'm afraid.

更多推荐

本文发布于:2023-07-28 12:13:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1305213.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:最新信息   项目   工作   TFS   query

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!