Accessing Stream name on which snapshot is creating(Server side API)
Hello Everyone,
I am using CLM 6.0.6.
I want to create an advisor plugin for Naming convention for Snapshot in Source Control But in my case Naming convention for Snapshot depends on Stream name on which we are creating Snapshot.
I tried to access Stream using server side api but I am not getting Stream name on which we are creating snapshot.
Kindly provide me any API for accessing stream on which Snapshot is creating.
Regards
Pallavi
|
One answer
IModifyStreamOperationData.getTargetWorkspace() gives you the handle to the stream that had the snapshot created on it.
From there you just fetch the full IWorkspace (which is a stream) and call IWorkspace.getName() to get the name of the stream.
|
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.
Comments
There is not even an obvious operation ID to use, I am not sure if this is possible.
Hi Ralph,
If it is available at all, it is in the operation data. I would not bet on it. https://rsjazz.wordpress.com/2017/02/13/diy-stream-naming-convention-advisors/ shows the operationData. I would create an enhancement request.