【发布时间】:2018-10-20 16:32:52
【问题描述】:
我用 Epic 泳道和迭代列构建了一个故事地图纸板。有一个迭代选择器可以选择从哪个迭代开始。
我的项目是投资组合中的子项目。每个子项目都有自己的迭代。 (真的,我们应该在父级别对齐迭代并定义时间框,但我们还没有。)一些史诗是我项目的本地,其他在父级别,所以在兄弟项目中也有故事。
应用程序在子项目中按预期工作,即它显示该项目中按 Epic 和 Iteration 分组的故事,从选定的迭代开始。
如果它在父项目中运行,它应该显示来自父项目的故事以及按 Epic 和 Iteration 分组的所有子项目(因此 Iteration 列将是来自子项目的迭代的混合)。
问题在于,当上下文是父项目时,迭代下拉列表不会填充。如果没有选定的起始迭代,则不会加载任何其他内容。
是否可以告诉 IterationComboBox 向下导航到子项目?我尝试将 context:{projectScopeDown: true} 添加到配置对象,但没有任何效果。
var me = this;
var iterComboBox = Ext.create('Rally.ui.combobox.IterationComboBox', {
itemId: 'iteration-combobox', // we'll use this item ID later to get the users' selection
fieldLabel: 'Start from:',
labelAlign: 'right',
width: 500,
listeners: {
ready: me._loadSchedules, // initialization flow: next, load schedules
select: me._loadData, // user interactivity: when they choose a value, (re)load the data
scope: me
},
context:{
projectScopeDown: true
}
});
【问题讨论】: