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

Get IProjectAreaHandle from a given IComponentHandle

Hi,

I'm trying to find the project area that a component belongs to pre-populate the project area during programmatic work item creation.

I have a resource which I know belongs to a component which I have a component handle to. I get the component handle using the sharing manager.

The code looks something like this:


...

ISharingDescriptor descriptor = share.getSharingDescriptor();
IComponentHandle hComponent = descriptor.getComponent();

// determine the handle to the project area that the component is associated with
// here

...
WorkItemUI.createWorkItem(shell, hProjectArea, workItemInit);



Any help is much appreciated.

Tariq

0 votes


Be the first one to answer this question!

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: Mar 27 '09, 4:15 p.m.

Question was seen: 6,423 times

Last updated: Mar 27 '09, 4:15 p.m.

Confirmation Cancel Confirm