Title error: How to retrieved the rank of a story feature using the SnapshotStore
Using Javascript, I'm querying the Rally SDK 2 Lookback API to get information on my stories at a past date (2019-10-28). I run a query (described below) to retrieve some features according to their identifier and it works pretty well.
My problem is that the rank values are never populated in the response, whereas the other values (like FormattedId or Name) are well retrieved... The retrieved value is always empty. According to the documentation, number values should be retrievable from snapshots. Moreover, within Rally, I can see the Rank value history of a feature:
Would someone have an idea on how to retrieve a feature rank using the lookback API, please?
var features = Ext.create('Rally.data.lookback.SnapshotStore', {
fetch: ['Rank', 'FormattedID','Name'],
context: {
workspace: ['...'],
project: ['...']
},
filters: [
{
property: '__At',
value: '2019-10-28T19:32:00Z'
}, {
property: 'ObjectID',
operator: '=',
value: 328553426396
}
],
listeners: {
load: loadedFeatures,
scope: this
},
});
features.load();
function loadedFeatures(store, features) {
console.log(' - ' + (features? feature.length : 0) + ' features retrieved...');
_.each(features, function (feature) {
console.log(feature);
}
}
PS: I confirm that the feature had a rank value at this date :)