Requirement_Retrieve, SOAP API

Thursday, June 2, 2016 12:41:26 PM

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 3:34:46 PM
Avatar
re: pockpock on Thursday, June 2, 2016 12:41:26 PM
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
Statistics
  • Started: Thursday, June 2, 2016 12:41:26 PM
  • Last Reply: Thursday, June 2, 2016 3:34:46 PM
  • Replies: 1
  • Views: 632