Requirement_Retrieve, SOAP API

Thursday, June 2, 2016


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,
1 Replies
Thursday, June 2, 2016
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.


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