사용자 스토리의 부모 기능을 표시하고 동일한 상위 필드로 정렬하는 데 문제가 있습니다. 여기 내 코드가있다. 부모가 다른 사용자 스토리가 아니라면 상위 열에 빈 값이 표시됩니다. 부모 필드별로 정렬 할 수 없습니다.집회 SDK 2.0 사용자 스토리 부모 (기능) 표시 및 rallygrid의 부모 별 정렬
도움을 주시면 대단히 감사하겠습니다.
감사합니다.
<script type="text/javascript">
Rally.onReady(function() {
Ext.define('CustomApp', {
extend: 'Rally.app.App',
componentCls: 'app',
items: [
{
xtype: 'container',
itemId: 'iterationFilter'
},
{
xtype: 'container',
itemId: 'grid',
width: 800
}
],
launch: function() {
this.down('#iterationFilter').add({
xtype: 'rallyiterationcombobox',
cls: 'filter',
model: 'UserStory',
field: 'Iteration',
listeners: {
ready: this._onIterationComboBoxLoad,
select: this._onIterationComboBoxSelect,
scope: this
}
});
},
_onIterationComboBoxLoad: function(comboBox) {
this.iterationComboBox = comboBox;
Rally.data.ModelFactory.getModel({
type: 'UserStory',
success: this._onModelRetrieved,
scope: this
});
},
_getFilter: function() {
var filter = [];
filter.push({
property: 'Iteration',
operator: '=',
value: this.iterationComboBox.getValue()
});
return filter;
},
_onIterationComboBoxSelect: function() {
this._onSettingsChange();
},
_onSettingsChange: function() {
this.grid.filter(this._getFilter(), true, true);
},
_onModelRetrieved: function(model) {
this.grid = this.down('#grid').add({
xtype: 'rallygrid',
model: model,
columnCfgs: [
'FormattedID',
'Name',
'Plan Estimate',
'Parent',
'Schedule State',
'StoryType'
],
storeConfig: {
context: this.context.getDataContext(),
filters: this._getFilter()
},
showPagingToolbar: true,
enableEditing: false
});
}
});
});
Rally.launchApp('CustomApp', {
name: 'Defect Dashboard'
});
</script>
감사를 참조하지만 : 방법으로 정렬보다 우선합니다.. 여전히 작동하지 않습니다. 'Plan Estimate'-> 'PlanEstimate'및 'ScheduleState'-> 'ScheduleState'를 선택합니다. 그러나 'PortfolioItem'은 여전히 그리드에 표시되지 않습니다. columnCfgs : –
사실, 어떤 필드 "정렬 가능한 [ \t는 \t '이름', \t 'PlanEstimate' \t 'PortfolioItem' \t 'ScheduleState' \t 'StoryType' 'FormattedID']를 = False "는이 격자에 표시 할 수 없습니다. 다른 몇 가지 필드로 테스트되었습니다. 그리고 'PortfolioItem'은 정렬 할 수 없습니다. 이는 PortfolioItem/Feature별로 사용자 스토리 목록을 표시 할 수있는 방법이 없다는 것을 의미합니까? –
표시를 위해 portolioitem의 이름을 추출하기 위해 렌더러를 추가해야하는 것처럼 보입니다. –