how to get rtc team area by given team name
Hi,
I can list team area with IProjectArea.getTeamAreas().
for (Iterator iterator = teamAreas.iterator(); iterator.hasNext();) {
ITeamAreaHandle handle = (ITeamAreaHandle) iterator.next();
ITeamArea teamArea = (ITeamArea) repo.itemManager()
.fetchCompleteItem(handle, IItemManager.DEFAULT, null);
}
but I want to get team area by given team name instead of using loop. Is it possible to get a team area directly?
Thanks.
|
Accepted answer
Hi Eray...,
As of i know, we have to iterate the list of all teamareas to get team area. There is no other way. Regards, Ajay Eray İzgin selected this answer as the correct answer
|
One other answer
Ralph Schoon (63.3k●3●36●46)
| answered May 26 '14, 7:37 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited May 26 '14, 7:44 a.m.
Eray,
please try this approach: https://rsjazz.wordpress.com/2014/05/26/finding-a-process-area-using-its-name/ Sorry, just realized this is for the project area. I will have to look for team area. Comments 1
It actually should work for team areas as well, at least on the top hierarchical level, the URI can be created by adding the team area name behind the project area name like
|
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.
Comments
I don't think this is available. the usual use cases for using team areas (permissions, roles, ...) don't need the name.