azure-devops - Azure DevOps OAuth WorkItemSnapshot 查询 - 我可以进行日期算术吗?
问题描述
我正在对 WorkItemSnapshot 运行 OAuth 查询,我想在其中查询 Iteration/EndDate 和 Iteration/EndDate + 1 day之间的项目快照。
是否可以在这些类型的查询中进行日期算术?我在文档中找不到示例,但我肯定该功能必须存在!
https://analytics.dev.azure.com/MyOrg/MyProject/_odata/v3.0-preview/WorkItemSnapshot?
$apply=filter(
WorkItemType eq 'User Story'
and startswith(Area/AreaPath,'MyProject')
and DateValue gt Iteration/EndDate
and DateValue lt DATEADD(day,1,Iteration/EndDate)
and DateValue ge 2021-06-01Z
)
/groupby(
(Iteration/IterationPath,Area/AreaPath,WorkItemType,State,DateValue),
aggregate($count as Count, StoryPoints with sum as TotalStoryPoints)
)
解决方案
推荐阅读
- javascript - 选择多个带有文本的容器并修剪前 150 个字符
- java - FileStats 类的问题
- sql - 是否可以从表格中知道上次更新的列?
- javascript - Vuetify 数据表:如何自动设置每页的行数(取决于组件填充的垂直空间)?
- linux - 当一个进程试图打开一个文件时会发生什么
- servicenow - ServiceNow API - 获取必填/必填字段和数据
- redis - 在 Redis 中建模嵌套的子集合
- image-processing - prolog中为图像处理API构建的代码应该做哪些更改
- spring-boot - 如果代理不可用,则 Spring Boot Kafka 启动
- python - pkg_resources.get_distribution("mymodule").version 重新加载后未更新