1
votes

I try to retrieve test cases from rally using XML URL such as https://rally1.rallydev.com/slm/webservice/1.37/testcase?query = ...

I want to retrieve only test cases of WorkProducts those are accepted from day x to day y so I build the query like this: https://rally1.rallydev.com/slm/webservice/1.37/testcase?query=((WorkProduct.AcceptedDate >= "yyyy-mm-dd") AND (WorkProduct.AcceptedDate <= "yyyy-mm-dd")) The result is: Could not traverse to "AcceptedDate"

The funny thing is I can do something like: https://rally1.rallydev.com/slm/webservice/1.37/testcase?query=(WorkProduct.LastUpdateDate <= "2012-06-26") which is the same concept.

Is there anyone can say why LastUpdate information is query-able and AcceptedDate is not?

Thanks, Minh Tue

1

1 Answers

1
votes

The reason this doesn't work is because the WorkProduct field on TestCase is an Artifact. Artifact does have a LastUpdateDate field but does not have an AcceptedDate field. You should still be able to get the data you want but it will take a few extra queries.

You'll have to query for defects and stories whose AcceptedDate is in the desired range and include TestCases in the fetch.