我有find
的请求:
"find": {
"Project": 123,
"_TypeHierarchy": "HierarchicalRequirement",
"fields": ["FormattedID","ScheduleState"],
"hydrate": "ScheduleState",
"compress": true
}
并返回重复的快照,例如:
Results:
[
{
ScheduleState: "Defined",
FormattedID: "US3000"
},
{
ScheduleState: "Defined",
FormattedID: "US3000"
},
{
ScheduleState: "Defined",
FormattedID: "US3000"
},
还尝试了这个终点:
https://rally1.rallydev.com/analytics/v2.0/service/rally/workspace/100/artifact/snapshot/query.js?find={"Project":123,"_TypeHierarchy":"HierarchicalRequirement"}&fields=["FormattedID","ScheduleState"]&hydrate=["ScheduleState"]&compress=true
返回相同的副本。
应该"压缩"选项根据所选字段值的变化减少查询返回的快照数量? ScheduleState没有任何变化,因为重复的快照显示相同的"定义"州。这个故事US3000还有其他变化,PlanEstimate已经改变,但它没有受到影响。我的语法有问题吗?
答案 0 :(得分:3)
要使压缩工作,必须在请求的字段列表中包含_ValidFrom,_ValidTo和ObjectID。试一试。