就绪和再生拉力回望API过滤器 [英] Rally Lookback API filter on Ready and Recycled

查看:170
本文介绍了就绪和再生拉力回望API过滤器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用的回溯API来获取具有Ready标志设置为真实的故事。我似乎能够输出就绪标志,但它无法过滤。

我不出现,以便能够筛选或输出再生标志

好奇,如果这些字段不提供给回溯API作为过滤器。


解决方案

尼克是正确的关于再生的文物。我不知道,但如果你是引用就绪价值观和对待他们就像一个字符串。该字段实际上是一个布尔值,可以查询这样的:

<$p$p><$c$c>https://rally1.rallydev.com/analytics/v2.0/service/rally/workspace/12352608129/artifact/snapshot/query.js?find={\"Ready\":true}&fields=true

这不工作(因为它匹配的字符串true,而不是真正的布尔)。

<$p$p><$c$c>https://rally1.rallydev.com/analytics/v2.0/service/rally/workspace/12352608129/artifact/snapshot/query.js?find={\"Ready\":\"true\"}&fields=true

它也被列为1号在文档的提示和技巧部分:
<一href=\"https://rally1.rallydev.com/analytics/doc/Analytics2.0LookbackAPIUserManual.html#h.ce80nb6raonb\" rel=\"nofollow\">https://rally1.rallydev.com/analytics/doc/Analytics2.0LookbackAPIUserManual.html#h.ce80nb6raonb

I am trying to use the lookback api to get stories that have the Ready flag set to true. I appear to be able to output the ready flag but not filter on it.

I do not appear to be able to filter or output the recycled flag.

Curious if these fields are not available to the lookback api as filters.

解决方案

Nick is right about the Recycled artifacts. I'm wondering though if you are quoting the Ready values and treating them like a String. This field is actually a Boolean and can be queried like this:

https://rally1.rallydev.com/analytics/v2.0/service/rally/workspace/12352608129/artifact/snapshot/query.js?find={"Ready":true}&fields=true

This doesn't work (since it's matching on the string "true" instead of the Boolean true).

https://rally1.rallydev.com/analytics/v2.0/service/rally/workspace/12352608129/artifact/snapshot/query.js?find={"Ready":"true"}&fields=true

It's also listed as #1 in the Tips and Tricks section of the documentation: https://rally1.rallydev.com/analytics/doc/Analytics2.0LookbackAPIUserManual.html#h.ce80nb6raonb

这篇关于就绪和再生拉力回望API过滤器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆