【发布时间】:2018-06-01 18:24:21
【问题描述】:
是否可以根据开始迭代和结束迭代之间的迭代来过滤用户故事。我能够过滤从开始迭代向前和结束迭代向后的所有用户故事,但是当我在我的商店对象中使用“.and”过滤器时出现错误。
var StartDateFilter = Ext.create('Rally.data.QueryFilter', {
property: 'Iteration',
operator: '>=',
value: StartIteration
});
var UserStoryFilter = StartDateFilter.and(Ext.create(
'Rally.data.wsapi.Filter', {
property: 'Iteration',
operator: '<=', // combines the the iterations so it receives all iterations in between
value: EndIteration
}));
var UserStoryFilter = StartDateFilter.and(EndDateFilter);
this.defectStore = Ext.create('Rally.data.wsapi.Store', {
model: 'User Story',
autoLoad: true,
pageSize: 1000,
filters : UserStoryFilter,
listeners: {
load: function(myStore, myData) {
console.log(myData);
},
scope: this
},
fetch: ['CreationDate','FormattedID', 'Name', 'PlanEstimate', 'Feature', 'PortfolioItem', 'Milestones','Parent','Children']
});
【问题讨论】:
标签: javascript json sdk rally