It's all about the answers!

Ask a question

RTC list managed project areas


Mike Brouwers (34918) | asked Oct 16 '14, 1:51 p.m.
edited Oct 16 '14, 1:52 p.m.
 Hi,

when in the eclipse client, in my plugin I would like to know all projectareas that are managed in my repository connection (the projects that are visible in the team artifacts explorer.

How can I get to the list of these projects?

Mike

3 answers



permanent link
Kevin Ramer (4.5k6171189) | answered Oct 16 '14, 1:59 p.m.
You can only get 100% of them if you're in the JazzAdmin group.  Otherwise, in the Jazz Administration Perspective, Team Artifacts view, right click on any repository connection, choose "Manage Connected Project Areas".   That will show all the project areas for which you're authorized.

permanent link
Mike Brouwers (34918) | answered Oct 16 '14, 2:09 p.m.
 Yes but I would like to go through the API, and list the projectareas that I am managing in my workspace...

Comments
Kevin Ramer commented Oct 16 '14, 2:16 p.m.

Would go something like this ( assuming you've got the environment going ):

            IProcessItemService itemService = (IProcessItemService) teamRepository
            .getClientLibrary(IProcessItemService.class);
            List pAreas = itemService.findAllProjectAreas(null, null);
            for (Iterator iterator = pAreas.iterator(); iterator.hasNext();) {
                IProjectArea projectArea = (IProjectArea) iterator.next();
                // do something e.g.
                SystemOut.println(projectArea.getName())
            }


Mike Brouwers commented Oct 16 '14, 2:34 p.m.

yes, but that returns all project areas. I would like to filter to just the ones I have connected to in my workspace (the ones that are marked when I open the manage connected project areas dialog).


permanent link
Mike Brouwers (34918) | answered Oct 17 '14, 1:24 p.m.
 Anyone?

Comments
sam detweiler commented Oct 17 '14, 1:55 p.m.

I'm sure this isn't documented,

I looked in the eclipse workspace and found

eclipse_workspace_path.metadata.plugins\com.ibm.team.workitem.rcp.ui\data2.xml
which contains the connection info.

Your answer


Register or to post your answer.