我需要为特定项目及其所有子项获取所有缺陷。
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的缺陷,但不返回其子项目的缺陷。
我还阅读了Lookback API _ProjectHierarchy not scoping down,但它说明了同样的内容。
我还缺少其他什么吗?
答案 0 :(得分:3)
每个项目的发布OID都不同,因此指定单个版本(9999)会将结果限制为单个项目。为了完成同样的事情,您将获得所有匹配版本的所有oid,以满足您想要的项目范围。