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:
Any help is much appreciated.
Tariq
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