Finding Project Area from IBaseline using API?
![]()
I want to know is it possible to get the project area handle starting with Ibaseline object .
If some body has refernce code would be helpful or pointing to use particular API's would be great :) |
Accepted answer
![]()
Ralph Schoon (62.3k●3●36●43)
| answered Apr 21 '16, 5:47 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Apr 21 '16, 5:49 a.m.
I am not aware that a baseline would be related to anything other than the component. So there is no natural relationship to a project area. Actually there might be none at all, as SCM data is managed orthogonal to other CCM data. SCM data can be read and written in multiple project areas.
So which project area handle do you want to get? The baseline is for a component. A component has an owner which could (but does not necessarily have to) be a project area or nested in said project area. A component has visibility which might or might not be based on a project area. A component is used in a stream which have some relationship to a project area. The component might be used in other streams with other relationships to other project areas. A component can be privately owned in which case there would be no project area relationship at all. David Lafreniere selected this answer as the correct answer
Comments But In production normally components are owned by either Team or Project Area. Which in turn will be used in streams. We can drop scenario of private components. My use case is to find the Project area from Baseline of component.
Pretty sure as I explained above.
|
Comments
Just for interest's sake, why do you want to obtain the project area that owns the component containing that baseline? I.e. what are you going to do with it, once you obtain it?
We want to implement linkage between Baseline and Work item so that user when right click on baseline will be able to link it to the Delivery work item.problem is Snapshot is able to give me owner but For baseline I am still not found solution,Please let me know any API available for this or Not
This is the below code which gets PA handle from snapshot
private IProjectAreaHandle getProjectAreaOfSnapshot(final IBaselineSet snapshot) throws TeamRepositoryException {
final IWorkspaceHandle workspaceHandle = snapshot.getOwner(); //I don’t find this function for baseline