Requirement_Retrieve, SOAP API

Thursday, June 2, 2016
Avatar

Hi,

I have a problem using the Requirement_Retrieve and RemoteFilters.
I try to filter by name using the following code:
RemoteRequirement[] req = connection.Requirement_Retrieve(new [] {new RemoteFilter {PropertyName = "Name", StringValue = "MyRequirement1"} }, 1, 10);
This works as long, as the requirement "MyRequirement1" does not have child requirements and I get an array that contains one element, as expected. 
However if it's not a leaf element, the RemoteFilter does not work and I get an empty array. How can I search for non-leaf elements?

Best regards,
Guenther
1 Replies
Thursday, June 2, 2016
Avatar
inflectra.sarahx
re: pockpock Thursday, June 2, 2016
Hi Guenther

I'm afraid that is not possible, if you search by a lower level item it will include the parents however in the list of returned results, so you could iterate up one level.

Regards

Sarah

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Thursday, June 2, 2016
  • Last Reply: Thursday, June 2, 2016
  • Replies: 1
  • Views: 8431