我需要为BurnDownApp添加一些自定义。 我想从“发布组合框”+所有用户故事中检索所有发布的用户故事,这些故事链接到与发布相关联的项目组合项目功能。
在默认实现中,我只能检索链接到Release的用户故事:
find: {
"_TypeHierarchy": { '$in' : [ -51038] },
"Children": null
}
我尝试使用此查询:
find:{
$and:
[{"_TypeHierarchy": -51038, "Children": null},
{"_TypeHierarchy": { '$in' : [ -51038, -51006 ] },
"Children": null
"Feature.Release.Name": "%ReleaseName%"}]
}
但它不起作用
我应该如何更改获取所需数据的查询?
在github上链接到BurnDownApp:https://github.com/RallyApps/app-catalog/tree/master/src/apps/charts/burndown
答案 0 :(得分:0)
即使WS API查询(Feature.Release.Name = "r3")
可行:
https://rally1.rallydev.com/slm/webservice/v2.0/hierarchicalrequirement?workspace=https://rally1.rallydev.com/slm/webservice/v2.0/workspace/12345&query=(Feature.Release.Name = "r3")
这在Lookback API中不起作用。
此Lookback API查询"Feature":7777
将起作用。在此示例中,7777是功能的ObjectID:
https://rally1.rallydev.com/analytics/v2.0/service/rally/workspace/12345/artifact/snapshot/query.js?find={"_ProjectHierarchy":22222,"_TypeHierarchy":"HierarchicalRequirement","ScheduleState":"Accepted","Feature":7777,"_PreviousValues.ScheduleState":{ "$lt":"Accepted"}},sort:[{"ObjectID": 1},{_ValidFrom: 1}]&fields=["Name","ScheduleState","PlanEstimate","Release"]&hydrate=["ScheduleState"]
如果您想根据发布组合框选择动态获取自定义应用中的功能,您可以:
"Feature": {$in:[7777,8888,9999]}
过滤它们应该有效。