【问题标题】:Using rally app lookback API - unable to fetch defects that are tagged使用拉力赛应用程序回溯 API - 无法获取已标记的缺陷
【发布时间】:2018-02-14 00:40:41
【问题描述】:

我正在使用反弹回溯 API 并创建缺陷趋势图。我需要过滤没有标签“xyz”的缺陷。

使用以下内容:

this.myTrendChart = Ext.create('Rally.ui.chart.Chart', {
            storeType: 'Rally.data.lookback.SnapshotStore',
            storeConfig: {
                find: {
                    _TypeHierarchy: "Defect",
                     State: { $lt: "Closed"},
                     Tags.Name: { $nin: ["xyz"] }, 
                    _ProjectHierarchy: projectOid,
                    _ValidFrom: {$gte: startDateUTC}
                }
            },
            calculatorType: 'Calci',
            calculatorConfig: {},
            chartConfig: {
                chart: {
                    zoomType: 'x',
                    type: 'line'
                },
                title: {
                    text: 'Defect trend'
                },
                xAxis: {
                    type: 'datetime',
                    minTickInterval: 7
                },
                yAxis: {
                    title: {
                    text: 'Number of Defects'
                    }
                }
            }
        });

这不会返回任何数据。在标签过滤器方面需要帮助。

【问题讨论】:

    标签: rally lookbackapi


    【解决方案1】:

    Tags 是 tag-oid 的集合,因此您需要找到并使用标签的 oid 与名称,此时它只是 Tags: { $nin: [oid] }。警告:从技术上讲,由于价格昂贵,不支持 $nin(https://rally1.rallydev.com/analytics/doc/#/manual/48e0589f681160fc316a8a4802dc389f)...but 它不会抛出错误,所以它可能仍然有效。

    【讨论】:

    • 谢谢乔尔。您的建议对我很有帮助。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-08-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多