1

I am trying to query Rally with multiple filters. I am looking to query Rally for all defects in a specific project that have defects with a specific CreationDate. When I send the query, I get 0 results back. I know that there have been defects created in that project on that specific day. When I send the query with just the project (and get rid of the date filter), I get all the defects that are currently in that project. I just can't seem to figure out how to query with multiple filters.

var data_length;
var filter = [];
var newDate = Rally.util.DateTime.format(new Date('05/10/2013'), 'M d, Y');
filter.push({
    property: 'Project',
    operator: '=',
    value: "/project/7579240995"
});
filter.push({
    property: 'CreationDate',
    operator: '=',
    value: newDate
});
Ext.create('Rally.data.WsapiDataStore',{
    context: { project: null },
    autoLoad: true,
    limit: 10000,
    model: 'Defect',
    fetch: [ 'FormattedID', 'Name', 'Project', 'State', 'Severity', 'CreationDate'],
    filters: filter,
    listeners: {
        load: function( store, data, success ) {
            data_length = data.length;
        }
    }
});

Any thoughts or help?

4

1 に答える 1

1

日付の形式だと思います。WSAPI は、すべての日付が ISO 形式であることを想定しています。

filter.push({
    property: 'CreationDate',
    operator: '=',
    value: '2013-05-10'
});
于 2013-05-14T18:01:07.133 に答える