You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何通过Project ID与迭代名称过滤Rally API获取测试集及测试用例?

Fixing ProjectID Filtering in Rally TestSet API Query

Hey there, I see you're having trouble getting the ProjectID filter to work with your Rally TestSet API call right now. The issue here is how you're structuring your query parameters—you've included two separate query keys in your URL, and Rally's web service only honors the last one it encounters. That's why your results are only being filtered by the Iteration name, and the ProjectID condition is being completely ignored.

The Correct Query Format

Instead of splitting your conditions into two query parameters, combine them into a single query using the AND logical operator to enforce both filters:

https://rally1.rallydev.com/slm/webservice/v2.0/testset?query=(Iteration.name = "Sprint:18.2") AND (ProjectID = "177771658096")

Why This Works

Rally's API expects all filter criteria to live within a single query parameter. When you pass multiple query parameters, the server overrides the earlier ones with the last value provided. By merging your Iteration and ProjectID checks into one query string, you're telling the API to return only TestSets that match both conditions.

Quick Notes to Double-Check

  • Verify that the ProjectID 177771658096 is indeed the correct ID for your target project—Rally uses numeric string IDs, so make sure there are no typos here.
  • For more complex filtering, you can nest conditions with parentheses to control logic priority, e.g., ((Iteration.name = "Sprint:18.2") AND (ProjectID = "177771658096")) OR (State = "Ready").
  • If your query includes special characters (like spaces or symbols beyond what's in your example), you'll need to URL-encode the query string, but your current example should work as-is.

内容的提问来源于stack exchange,提问作者N. A Sheerin

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.27 09:54:57