拉力赛 - 按里程碑名称过滤 Epics
Rally - Filter Epics by Milestone Name
是否可以仅使用里程碑的名称来过滤 PortfolioItem?例如,我将如何使用 Milestone 标记名称来过滤 MMF。
var mmfFilter = Ext.create('Rally.data.wsapi.Filter', {
property : 'Milestone',
operator : '=',
value : milestoneName // String of the name of the milestone tag
});
Ext.create('Rally.data.wsapi.Store', {
model: 'PortfolioItem/MMF',
autoLoad: true,
filters : mmfFilter,
listeners: {
load: function(myStore, myData, success) {
console.log('MMFs with this milestone tag name', myData); // prints null
},
scope: this
},
fetch: ['CreationDate','FormattedID', 'Name', 'Parent']
});
当然可以! Milestones 是一个集合,因此您可能需要使用 contains 运算符,但像这样的东西应该可以工作:
{
property: 'Milestones.Name',
operator: '=', //or maybe 'contains'?
value: milestoneName
}
通常,您可以使用点语法在查询过滤器中深入了解对象属性。
是否可以仅使用里程碑的名称来过滤 PortfolioItem?例如,我将如何使用 Milestone 标记名称来过滤 MMF。
var mmfFilter = Ext.create('Rally.data.wsapi.Filter', {
property : 'Milestone',
operator : '=',
value : milestoneName // String of the name of the milestone tag
});
Ext.create('Rally.data.wsapi.Store', {
model: 'PortfolioItem/MMF',
autoLoad: true,
filters : mmfFilter,
listeners: {
load: function(myStore, myData, success) {
console.log('MMFs with this milestone tag name', myData); // prints null
},
scope: this
},
fetch: ['CreationDate','FormattedID', 'Name', 'Parent']
});
当然可以! Milestones 是一个集合,因此您可能需要使用 contains 运算符,但像这样的东西应该可以工作:
{
property: 'Milestones.Name',
operator: '=', //or maybe 'contains'?
value: milestoneName
}
通常,您可以使用点语法在查询过滤器中深入了解对象属性。