Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Rally .Net API : How to use Query.Operator.Contains with array or list (OR condition)

Using Rally ,Net API v2.0 with C#. I am trying to get an OR condition filter for my query so that I can pass in a list of IDs.

Something along the lines of:

  string input = "abc, xyz1";
  Request storyRequest = new Request("hierarchicalrequirement");
  storyRequest.Query = new Query("FormattedID", Query.Operator.Contains, input);

I want to be able to add multiple IDs to the input list and have it work without having to write another OR in the query string.

like image 970
PreethaA Avatar asked Jan 27 '26 11:01

PreethaA


1 Answers

The FormattedID attribute does not support the contains operator. You'll have to OR together all the searches.

like image 148
Kyle Morse Avatar answered Jan 30 '26 02:01

Kyle Morse



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!