Rally SDK 2.0 JavaScript Query Filtering -


i'm trying apply filter in userstories. filters not working , query returning stories selected project.

i'm using following code:

var estimatedstoriesquery = ext.create('rally.data.wsapidatastore', {        model: 'userstory',        storeconfig: {            filters: [                {property: 'project.name',                 operator: '!=',                 value: 'null'},                {property: 'planestimate',                 operator: '!=',                 value: 'null'},                {property: 'schedulestate',                 operator: '=',                 value: 'accepted'},                 {property: 'directchildrencount',                 operator: '=',                 value: '0'},                {property: 'accepteddate',                 operator: '<',                 value: 'lastmonth'}              ]            },});  estimatedstoriesquery.load({                     callback: function(records, operation) {                         if(operation.wassuccessful()) {                            var estimatedstoriescount = records.length;                            document.write(estimatedstoriescount);                           }                     }                 }); 

do guys have idea of should problem? thanks.

you have nested storeconfig. rid of , should good:

var estimatedstoriesquery = ext.create('rally.data.wsapidatastore', {    model: 'userstory',    filters: [        {property: 'planestimate',         operator: '!=',         value: 'null'},        {property: 'schedulestate',         operator: '=',         value: 'accepted'},         {property: 'directchildrencount',         operator: '=',         value: '0'},        {property: 'accepteddate',         operator: '<',         value: 'lastmonth'}      ]  }); 

you shouldn't need project.name filter since it's not possible create story not in project.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -