我正在尝试设置类似于趋势图表中的缺陷视图的过滤器。缺陷视图中的过滤器是:
(State < Closed) AND (Severity <= Major) AND (Tags !contains Not a Stop Ship)
我似乎无法让标签找到正常工作。有什么建议吗?
this.myTrendChart = Ext.create('Rally.ui.chart.Chart', {
storeType: 'Rally.data.lookback.SnapshotStore',
storeConfig: {
find: {
_TypeHierarchy: "Defect",
State: {
$lt: "Closed"
},
Severity: {
$lte: "Major"
},
Tags: {
$ne: "Not a Stop Ship"
},
_ProjectHierarchy: ProjectOid
},
hydrate: ["Priority"],
fetch: ["_ValidFrom", "_ValidTo", "ObjectID", "Priority"]
},
calculatorType: 'My.TrendCalc',
calculatorConfig: {},
chartConfig: {
chart: {
zoomType: 'x',
type: 'line'
},
title: {
text: 'Defects over Time'
},
xAxis: {
type: 'datetime',
minTickInterval: 3
},
yAxis: {
title: {
text: 'Number of Defects'
}
}
}
});
答案 0 :(得分:0)
基于查看JSON消息,我想出了需要作为ObjectId的标记。一旦我找到了这个,我就更换了#34; Not a Stop Ship&#34;使用ObjectId值并且过滤器工作正常。