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

RTC list managed project areas

 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

0 votes



3 answers

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

0 votes


Permanent link
 Yes but I would like to go through the API, and list the projectareas that I am managing in my workspace...

0 votes

Comments

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())
            }

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

0 votes

Comments

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 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: Oct 16 '14, 1:51 p.m.

Question was seen: 4,223 times

Last updated: Oct 17 '14, 1:55 p.m.

Confirmation Cancel Confirm