How to get TeamHandle from team hierachy?
![]()
Hello,
I am having Team hierarchy as follows, Main Project Area Team A Team1 Child 1 Child 2 Team 2 Child 3 Child 4 Team B.... Likewise I have number of teams. And members are added at 'Child 1', Child 2' level with different roles. Now I have Category associated with Team A and Team B and category name is same as Child name. e.g Category Child 1 is associated with Team A Category Child 2 is associated with Team A Now, when user selects category in 'Filed Against', I need to pick all members from that team and need to display in another list. Right now, I am using following code, List associatedTeamAres = filedAginstDetails.getAssociatedTeamAreas(); for (int i = 0; i < associatedTeamAres.size(); i++) { ITeamAreaHandle tah = (ITeamAreaHandle) associatedTeamAres.get(i); ITeamAreaHierarchy temp=tempAprea.getTeamAreaHierarchy(); Set<ITeamAreaHandle> children=temp.getChildren(tah); } Likewise, using hierarchy I am traversing till child team, but in future this hierarchy may change, so this code will fail. So, is there any way to get child team directly from any parent team considering Filed Against value. Thanks in advance. |
One answer
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.