How to fetch baseline name from Component Handle from server extensions
2 answers
Hello Sam,
Till this much we got.
Able to get component name and component handle.
Please let me know how to get baseline for a changeset/component
IChangeSetHandle changeSetHandle = (IChangeSetHandle) link.getSourceRef().resolve();
IChangeSet changeSet =
(IChangeSet) repositoryItemService.fetchItem(changeSetHandle, IRepositoryItemService.COMPLETE);
// Get the Component-Name(s) for respective Change-Set(s)
IComponentHandle componentHandle = changeSet.getComponent();
IComponent componentRepoService =
(IComponent) repositoryItemService.fetchItem(componentHandle, IRepositoryItemService.COMPLETE);