James,
The important thing to remember about the Team asset type in VersionOne is that it is really a container for workitems. Teams do not themselves have a relationship to Scope – a team can include workitems from many scopes. However, you CAN query for teams that include workitems within a given scope:
/rest-1.v1/Data/Team?where=Workitems.Scope='Scope:0'
If you want to also include teams that work on items in projects that are children of the selected scope, then you want:
/rest-1.v1/Data/Team?where=Workitems.Scope.ParentMeAndUp='Scope:0'
Depending on how you’re using this, you may want to limit this to only considering workitems that are currently open:
/rest-1.v1/Data/Team?where=Workitems[AssetState!= 'Closed'].Scope.ParentMeAndUp='Scope:0'
Or ones that are in the timebox you’re interested in:
/rest-1.v1/Data/Team?where=Workitems[Timebox='Timebox:1010'].Scope.ParentMeAndUp='Scope:0'
Sean McCrohan
V1 Developer
--
You received this message because you are subscribed to the Google Groups "VersionOne-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
versionone-de...@googlegroups.com.
To post to this group, send email to
version...@googlegroups.com.
Visit this group at http://groups.google.com/group/versionone-dev.
For more options, visit https://groups.google.com/d/optout.
To post to this group, send email to versio...@googlegroups.com.