Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes

Comments

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
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

0 votes


One other answer

Permanent link
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.

0 votes

Comments

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

1 vote

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: May 26 '14, 4:09 a.m.

Question was seen: 5,603 times

Last updated: May 26 '14, 8:41 a.m.

Confirmation Cancel Confirm