Adding to this a bit, it would likely be a modification to the _getStoreConfig function:
_getStoreConfig: function () {
return {
find: {
_TypeHierarchy: { '$in': [ 'HierarchicalRequirement'] },
_ItemHierarchy: { '$in': _.invoke(this.piRecords, 'getId')},
_ProjectHierarchy: { '$in': Ext.Array.from(this.down('checkboxgroup').getValue().project)}
},
fetch: ['ScheduleState', 'PlanEstimate', 'PortfolioItem', 'LeafStoryPlanEstimateTotal', 'State'],
hydrate: ['ScheduleState', 'State'],
sort: {
_ValidFrom: 1
},
context: this.getContext().getDataContext(),
limit: Infinity
};
This is Lookback API (https://rally1.rallydev.com/analytics/doc/#/manual) so you'd want to likely modify the "find" attribute and add something that references _PreviousValues.ScheduleState
The following article discusses a similar method:
https://comm.support.ca.com/kb/rally-lookback-api-how-to-find-user-stories-that-entered-in-progress-state/kb000129467
So it might look something like:
_PreviousValues.ScheduleState: {"$ne":"In-Progress"}