In Rally (Agile Central), I have written a custom app where I want to pull back PortfolioItem/Initiatives tied to a list of PortfolioItem/Capabilities (where the Capabilities are the children). I create an array of Capability _refs and use the containsany operator for the query filter.
It works fine until the array hits more than 35 items. It fails but I don't get a message why it fails. I assume there's some kind of limit. I'm essentially trying to pull all Initiatives whose Features (under Capabilities) are tied to a few Releases. Right now, I get all of those Feature and the refs to the parent capabilities to get the Initiatives but perhaps there's an easier way?
Here's my code to pull down Initiatives...
Ext.create('Rally.data.wsapi.Store', {
models: ['PortfolioItem/Initiative'],
autoLoad: true,
pageSize: 10000,
filters: [
{ property: 'Children', operator: 'containsany', value: capabilities } //only works if the capabilities array < 36 items
],
fetch: ['FormattedID', 'Name', 'PreliminaryEstimate',
'PreliminaryEstimateValue', 'Project', 'Parent', 'Tags', 'Tag', 'Parent'],
hydrate: ['Project', 'Tag', 'Parent'],
sorters: [{ property: 'FormattedID', direction: 'ASC' }],
listeners: {
scope: this,
load: function (store, initiatives, success, eOpts) {
console.log('We got initiatives back - Woohoo!');
deferred.resolve(featuresAndReleases);
}
}
});
Appreciate any thoughts or ways to get past this.