TFS REST API:包含时间部分时 ChangedDate returns 日期精度错误的查询

TFS REST API: a query by ChangedDate returns date precision error when time part is included

我正在浏览器休息客户端中对其进行测试。 端点:

http://server:port/tfs/Collection/_apis/wit/wiql?api-version=1.0

有效负载:

{"query":"Select Id From WorkItems Where [System.ChangedDate] >= '2016-03-16T22:02:00.00Z' AND [System.WorkItemType] = 'Bug' order by [System.CreatedDate] asc"}

方法:POST

结果:"You cannot supply a time with the date when running a query using date precision".

如果我删除日期时间的时间部分,并使用 [System.ChangedDate] >= '2016-03-16 它会起作用,但我需要更多的粒度。 .NET 上下文中类似问题的答案建议使用 dayPrecision = false 在 REST api 中是否有等效项?谢谢。

恐怕目前在 REST API 中没有任何选项可以将此设置为 true/false,您可以在 VSTS User Voice.[=12 上提交功能请求=]

目前的方法是使用 Query Constructor (WorkItemStore, String, IDictionary, Boolean) in .NET client libraries.