2

我正在为 Rally 编写一个自定义应用程序,我想将数据过滤为具有特定标签的故事。到目前为止,我还没有找到一种方法来编写正确的语法来实现这个目的。这是我将包含在 cardboardConfig 中的标准查询示例:

var query = new rally.sdk.util.Query('SomeField = "Some Value"');

这在尝试查询包含单个值的字段时效果很好,但这似乎不适用于标签,因为标签是数组——假设我什至引用了正确的字段名称。我尝试了以下所有方法但均未成功:

var query = new rally.sdk.util.Query('Tags = "Some Value"');
var query = new rally.sdk.util.Query('Tags contains "Some Value"');
var query = new rally.sdk.util.Query('Tag = "Some Value"');
var query = new rally.sdk.util.Query('Tag contains "Some Value"');
var query = new rally.sdk.util.Query('Tags = {"Some Value"}');
var query = new rally.sdk.util.Query('Tags contains {"Some Value"}');
var query = new rally.sdk.util.Query('Tag = {"Some Value"}');
var query = new rally.sdk.util.Query('Tag contains {"Some Value"}');

var SearchTags = { "Some Value" };
var query = new rally.sdk.util.Query('Tags = SearchTags');

var SearchTags = { "Some Value" };
var query = new rally.sdk.util.Query('Tags contains SearchTags');

将数据过滤到特定标签的正确字段名称和运算符是什么?

4

1 回答 1

4

试试这个:

var query = new rally.sdk.util.Query('Tags.Name Contains "Some Value");

这适用于标签,但目前不适用于所有集合。

于 2012-01-05T19:31:29.760 回答