如何按总数、待处理、完成、进行中、接受来显示用户描述/测试用例的数量

How to show the number of user stories/test cases by total, pending, complete, in progress, accepted?

本文关键字:描述 用户 显示 测试用例 何按总 处理 完成 进行中      更新时间:2023-09-26

所以我在Github上看到了这个应用程序:https://github.com/RallyApps/DefectSummaryMatrix

我正在尝试做同样的事情,除了测试用例和用户故事,而不是缺陷。我该怎么做呢?我对rally SDK很陌生,说实话有点失落,所以你们能说的任何事情都会有所帮助。

我一直在看这个App.html,我认为这部分是我需要注意的部分,因为这是它获得有关缺陷的信息的地方:

var defectQuery = function() {
        var selected = releaseDropdown.getSelectedName();
        var releaseQuery = '(Release.Name = "' + selected + '")';
        var queryObject = [];
        queryObject[0] = { key: 'defectStates', type: 'Defect', attribute: 'State' };
        queryObject[1] = { key: 'defectPriorities', type: 'Defect', attribute: 'Priority' };
        queryObject[2] = {
            key: 'defects',
            type: 'Defect',
            query: releaseQuery,
            fetch: 'FormattedID,Name,State,Priority,ScheduleState,ObjectID,Description,owner,DisplayName,LoginName'
        };
        rallyDataSource.findAll(queryObject, populateTable);
    };

我如何修改它来获得关于用户故事的信息?我想type字段应该被称为userStory或者类似的东西,但是键和属性是什么呢?

参见Web服务API文档中的Rally对象模型。在WS API中,用户故事被称为"HierarchicalRequirement"。单击对象模型中的HierarchicalRequirement对象来浏览属性。

我建议您不要使用DefectSummaryMatrix作为起点。这是一个使用旧的AppSDK1的旧应用程序。请使用AppSDK2。这里有一个多类型对象网格的例子