Hi Adam,
Thanks for the great questions.
Given that you know the member's ID, getting a list of all stories owned by that member can be accomplished like this:
/rest-1.v1/Data/Story?where=Owners='Member:1040'
Given that you know the story's ID, getting a list of tasks associated with that story can be accomplished like this:
/rest-1.v1/Data/Task?where=Parent='Story:1160'
Note that the Find and FindIn query tokens are generally for keyword searching in text fields like a description.
Hope that helps...
Acey Bunch
Technical Product and Agile Consultant
VersionOne
From: versionone-dev@googlegroups.com [mailto:versionone-dev@googlegroups.com] On Behalf Of Adam Anderson
Sent: Friday, July 06, 2012 3:45 PM
To: versionone-dev@googlegroups.com
Subject: CoreAPI: How to get a list of child elements, given a parent's ID
Using the core API, is it possible to get a list of child elements, given a parent's ID?
Examples:
* Get a list of stories owned by a member with a given member ID
* Get a list of tasks whose parent is a story with a given story ID
I've been able to get a list of stories owned by a member with a given name:
/rest-1.v1/Data/Story?&where=Owners.Name='John Doe'
but this isn't very specific (there may be multiple members with the same name).
I've tried using find and findin with no success:
/rest-1.v1/Data/Story?&find='Member%3A1000'&findin=Owners
Thanks!
--
You received this message because you are subscribed to the Google Groups "VersionOne-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/versionone-dev/-/CNfa7QdMeL8J.
To post to this group, send email to versionone-dev@googlegroups.com<mailto:versionone-dev@googlegroups.com>.
To unsubscribe from this group, send email to versionone-dev+unsubscribe@googlegroups.com<mailto:versionone-dev+unsubscri be@googlegroups.com>.
For more options, visit this group at http://groups.google.com/group/versionone-dev?hl=en.