How to fetch baseline name from Component Handle from server extensions
![](http://jazz.net/_images/myphoto/53329f45c9bafb46bd773c2b8c99936d.jpg)
2 answers
![](http://jazz.net/_images/myphoto/53329f45c9bafb46bd773c2b8c99936d.jpg)
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);