How to create duplicate stream using Server Side plugin
Hi All,
I have requirement to create duplicate stream based on previous stream using Server Side API on Workitem save operation. To achieve this firstly I need to fetch all streams and then need to duplicate stream.
To fetch all stream I am trying to use following code the getting following error:
public class DuplicateStream extends AbstractService implements
IOperationParticipant {
Object operationData = operation.getOperationData();
if(data instanceof ISaveParameter)
{
DeliverOperationData data1 = (DeliverOperationData) operationData;
IWorkspace target = data1.getSourceWorkspace();
String targetStream = target.getName();
}
}
code is breaking on DeliverOperationData and says:
com.ibm.team.workitem.common.internal.SaveParameter incompatible with com.ibm.team.scm.common.process.DeliverOperationData
How to make DeliverOperationData and DeliverOperationData compatible?
Or Is there any other approach to achieve this?
Thanks!
|
One answer
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.