fnding components by project
2 answers
Yes there is but components can be owned by projects/teams, so if you want the closure of all components in a project regardless of which team owns them, you'll have to search for components owned by each subteam using the getFilterByOwnerOptional() list as follows
iterate teams/projects and
crit.getFilterByOwnerOptional().add(ownerHandle);
iterate teams/projects and
crit.getFilterByOwnerOptional().add(ownerHandle);