Rally 带有投资组合项的树网格

Rally 带有投资组合项的树网格,rally,appsdk2,Rally,Appsdk2,是否可以通过TreeStoreBuilder使用投资组合项目模型构建rallytreegrid xtype?我能够用公文包项目构建rallyportfolio树,但是用这种类型的对象构建树网格时遇到问题。以下代码不会呈现树网格或产生任何错误。同样的代码,使用“用户故事”而不是“portfolioitem/area”可以正常工作: launch: function() { Ext.create('Rally.data.wsapi.TreeStoreBuilder').build({

是否可以通过TreeStoreBuilder使用投资组合项目模型构建rallytreegrid xtype?我能够用公文包项目构建rallyportfolio树,但是用这种类型的对象构建树网格时遇到问题。

以下代码不会呈现树网格或产生任何错误。同样的代码,使用“用户故事”而不是“portfolioitem/area”可以正常工作:

launch: function() {
    Ext.create('Rally.data.wsapi.TreeStoreBuilder').build({
        models: ['portfolioitem/area'],
        autoLoad: true,
        enableHierarchy: true
    }).then({
        success: this._onStoreBuilt,
        scope: this
    });
},
_onStoreBuilt: function(store) {
    this.add({
        xtype: 'rallytreegrid',
        context: this.getContext(),
        store: store,
        columnCfgs: [
            'Name',
            'Owner',
            'Description'
        ]
    });
}

经过一点调试后,我能够通过在启动函数中对代码进行一些小的调整来让它工作:

launch: function() {
    Ext.create('Rally.data.wsapi.TreeStoreBuilder').build({
        models: ['portfolioitem/feature', 'userstory'],
        parentTypes: ['portfolioitem/feature'],
        autoLoad: true,
        fetch: ['Name', 'Owner', 'Description'],
        enableHierarchy: true
    }).then({
        success: this._onStoreBuilt,
        scope: this
    });
}

同样,在下一个sdk版本中,这应该会更顺利一些,但希望您现在就可以完成这项工作。

您可以发布一些您尝试过的示例代码或收到的任何特定错误吗?2.0rc3中的TreeGrid仍处于实验阶段,因此我不确定它当前是否支持PI。下一个SDK版本中的网格肯定会出现,但也许我们可以解决这方面的任何当前问题version@KyleMorse-以下代码不会呈现树网格或产生任何错误。同样的代码,使用“用户故事”而不是“portfolioitem/area”确实可以正常工作:
launch:function(){Ext.create('Rally.data.wsapi.TreeStoreBuilder')。build({models:['portfolioitem/area'],autoLoad:true,enableHierarchy:true}){this.add({xtype:'rallytreegrid',context:this.getContext(),store:store,columnCfgs:['Name','Owner','Description']});}
使用您的代码,树中只显示用户故事及其子故事。您能够查看功能吗?理想的树网格应该是“Portfolio Items”beta仪表板上提供的网格。目前是否可以通过SDK使用这种类型的网格?很快就会出现。我们计划发布SDK earl的2.0 ga版本下一年的y,其中将包括最新和最伟大的树木网格。