Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
CoreAPI: How to get a list of child elements, given a parent's ID
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Adam Anderson  
View profile  
 More options Jul 6 2012, 3:45 pm
From: Adam Anderson <beo...@gmail.com>
Date: Fri, 6 Jul 2012 12:45:00 -0700 (PDT)
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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Acey Bunch  
View profile  
 More options Jul 6 2012, 5:15 pm
From: Acey Bunch <acey.bu...@versionone.com>
Date: Fri, 6 Jul 2012 14:15:06 -0700
Local: Fri, Jul 6 2012 5:15 pm
Subject: RE: CoreAPI: How to get a list of child elements, given a parent's ID

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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »