It's all about the answers!

Ask a question

how to get rtc team area by given team name


Eray İzgin (1161724) | asked May 26 '14, 4:09 a.m.
 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.

Comments
sam detweiler commented May 26 '14, 7:51 a.m.

I don't think this is available. the usual use cases for using team areas (permissions, roles, ...) don't need the name.

Accepted answer


permanent link
Ajay Mallikarjunaiah (148410) | answered May 26 '14, 8:41 a.m.
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



permanent link
Ralph Schoon (63.1k33645) | 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
Ralph Schoon commented May 26 '14, 7:56 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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

projectAreaName+"/"+teamAreaName

Your answer


Register or to post your answer.