如何在故事板中添加自定义数据?

时间:2015-08-22 17:00:28

标签: rally

问题1:是否可以在故​​事板中为每张卡添加自定义数据(例如:测试用例数:5)?如果是这样,怎么样?我无法在文档中找到示例或具体信息。

问题2:是否可以在一个查询中获得高级故事的测试用例计数(包括子故事测试用例)?

请告诉我。这是我的代码

Ext.define('Rally.Story.View', {
    extend: 'Rally.app.App',

    launch: function() {
        this.add({
            xtype: 'rallyfieldvaluecombobox',
            fieldLabel: 'Filter by Target Release:',
            model: 'UserStory',
            field: 'c_TargetRelease',
            value: '15.0',
            listeners: {
                select: this._onSelect,
                ready: this._onLoad,
                scope: this
            }
        });
    },

    _onLoad: function() {
        this.add({
            xtype: 'rallycardboard',
            types: ['User Story'],
            attribute: 'ScheduleState',
            readOnly: true,
            fetch: ['Name', 'TestCases', 'c_StoryType', 'c_TargetRelease', 'PlanEstimate', 'Priority', 'TaskEstimateTotal', 'TaskRemainingTotal'],
            context: this.getContext(),
            cardConfig: {
                editable: false,
                showIconsAndHighlightBorder: false,
                fields: ['Name', 'c_StoryType', 'c_TargetRelease', 'PlanEstimate', 'c_PriorityBin', 'Parent', 'TestCases', 'TaskEstimateTotal', 'TaskRemainingTotal']
            },
            storeConfig: {
                filters: [
                    {
                        property: 'c_StoryType',
                        value: 'SAGA Feature'
                    },
                    {
                        property: 'c_TargetRelease',
                        operator: '=',
                        value: this.down('rallyfieldvaluecombobox').getValue()
                    }
                ]
            }
        });
    },

    _onSelect: function() {
        var board = this.down('rallycardboard');
        board.refresh({
            storeConfig: {
                filters: [
                    {
                        property: 'c_StoryType',
                        value: 'SAGA Feature'
                    },
                    {
                        property: 'c_TargetRelease',
                        operator: '=',
                        value: this.down('rallyfieldvaluecombobox').getValue()
                    }
                ]
            }
        });
    },           
});

0 个答案:

没有答案
相关问题