TFS 团队查询:获取自给定时间以来所有更改的工作项
显然,在定义新的团队查询时,不可能为“更改日期”字段提供时间戳(格式为“2009-12-14 10:00:00”)。我收到错误:“查询失败。使用日期精度运行查询时,无法提供带有日期的时间。”。
有解决方法吗?我只想要一个自过去“x”分钟以来更改的工作项目列表。
Apparently it is impossible to provide the Changed Date field with a timestamp (format '2009-12-14 10:00:00') when defining a new Team Query. I get the error: "The query failed. You cannot supply a time with the date when running a query using date precision.".
Is there a workaround for this? I just want a list of work items which are changed since the last 'x' minutes.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
解决方案是编写您自己的 WIQL 查询: http ://teamfoundation.blogspot.com/2008/01/specifying-date-and-time-in-wiql.html。
The solution is to write your own WIQL query: http://teamfoundation.blogspot.com/2008/01/specifying-date-and-time-in-wiql.html.
您输入的日期格式与 VSTS 显示的格式相同:dd-MMM-YY (01-Jan-16)。
You to enter the date in the same format as it is displayed by VSTS: dd-MMM-YY (01-Jan-16).
为了按特定日期过滤 TFS 中的项目,请遵循以下格式:
In order to filter your items in TFS by a specific date, stick to this format:
尝试添加查询参数
timePrecision:true
。这对我有用try adding query parameter
timePrecision:true
. This worked for me我在尝试查询最新更新时遇到了同样的问题,并通过执行以下操作来解决它
我做了一些非常类似的事情来检索测试结果
I ran into the same problem while trying to query for the latest updates and worked around it by doing the following
I did something very similar for retrieving test results
此 查询构造函数 的最后一个参数让您定义精度:
The last parameter of this query constructor lets you define the precision: