回顾 API _ProjectHierarchy 未返回子项目的缺陷

Lookback API _ProjectHierarchy not returning defects for child project

我需要获取特定项目及其所有子项目的所有缺陷。

Rally LBAPI 文档说:

For a project hierarchy like

    Project 7890
       Project 6543
          Project 3456

to retrieve all work items that are in Project 7890 or any of its child projects,
you would simply include this clause in your query:

   "_ProjectHierarchy": 7890

但是在下面的查询中这样做

https://rally1.rallydev.com/analytics/v2.0/service/rally/workspace/XXX/artifact/snapshot/query.js?find={"_ProjectHierarchy":12345,"_TypeHierarchy": "Defect","__At": "current","Release":9999}&fields=["FormattedID","Name","State","OpenedDate","ClosedDate"]&hydrate=["State"]&sort={"FormattedID":1}&start=0&removeUnauthorizedSnapshots=true

项目 12345 仅 return 个缺陷,但其子项目 none 个缺陷。

我也读过Lookback API _ProjectHierarchy not scoping down,但文档中写的是同样的内容。

还有什么我想念的吗?

每个项目的版本 OID 都不同,因此指定单个版本 (9999) 会将结果限制为单个项目。要完成同样的事情,您将获得您想要的项目范围的所有匹配版本的所有 oid。