Lookback api:即使compress设置为true,也会返回重复的快照

时间:2014-05-19 22:39:18

标签: rally lookbackapi

我有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已经改变,但它没有受到影响。我的语法有问题吗?

1 个答案:

答案 0 :(得分:3)

要使压缩工作,必须在请求的字段列表中包含_ValidFrom,_ValidTo和ObjectID。试一试。