首页 > 解决方案 > Rally API to retrieve corresponding test sets & test cases by applying query filter with Project ID & Iteration name?

问题描述

I tried the below API but not able to filter the results with the ProjectID.The response test sets under iteration Sprint:18.2 irrespective of the project.

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

标签: javarestapirally

解决方案


您可以通过以下两种方式之一执行此特定查询。首先,将您的查询更新为:

?query=((Project.ObjectID = "177771658096") AND (Iteration.Name = "Sprint:18.2"))

其次,以这种方式添加项目:

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

推荐阅读