Hi again,
With this code:
_makeStore: function(name){
Ext.create('Rally.data.WsapiDataStore', {
model: 'UserStory',
limit: Infinity,
fetch: ['FormattedID','Name','PlanEstimate'],
autoLoad: true,
filters: [{
property: 'Iteration.Name',
value: "name"
}],
listeners: {
change: this._onDataLoaded,
scope: this
}
});
},
_onDataLoaded: function(store, data){
puntosTotales = 0;
Ext.Array.each(data, function(story) {
var s = story.get('PlanEstimate');
var n = story.get('Name');
if(s != null){
puntosTotales += s;
}
}, this);
},
I can get the sum of the story points in my iteration with scoping down. The problem is that i am obtaining the data at the end of everything and i need the data earliear to do some operations.
What can i change (the listeners?) to get the data at the init and not at finish?
Any help would be appreciated