在Lookback API中通过ID查询任务后没有获得结果字段

时间:2017-02-14 20:52:05

标签: rally

我尝试按ObjectID查询任务以获取最新的快照。我正在尝试使用API​​,并且在阅读完文档后我没有得到我希望的预期结果。我没有在响应对象中获得结果字段。这是我的代码:

_loadTaskSnapshot: function() {
        let snapshot = Ext.create('Rally.data.lookback.SnapshotStore', {
            context: {
                workspace: '/workspace/2290039850'
            },
            "find": {
                "ObjectID": 34858774310,
                "_ValidFrom": {
                    "$gte": "2016",
                    "$lt": "2017"
                }
            },
            "fields": ["Name", "Estimate", "ToDo", "TimeSpent"],
        });

        return snapshot.load();
    }

这是具有18个指定任务快照的商店。第一个快照打开。你可以看到没有结果字段我可以找到Name,Estimate,ToDo和TimeSpent:

This is the store with 18 snapshots for the specified task. The first snapshot is opened. You can see there is no results field where I could find the Name, Estimate, ToDo, and TimeSpent

1 个答案:

答案 0 :(得分:3)

Alejandro,您要求更改字段,而不是字段的值。这是对回溯api的常见误解。有一种特殊方法可以获得Agile Central中可用的帮助页面中显示的当前值。

返回的任何信息实际上都保存在“原始”和“数据”下面的对象中。如果在拍摄快照时这些字段没有“更改”,则每个值都不能包含任何值。