It's all about the answers!

Ask a question

Get IProjectAreaHandle from a given IComponentHandle

Tariq Zaid (11) | asked Mar 27 '09, 4:15 p.m.

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.


Be the first one to answer this question!

Register or 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.