Groovy workflow Code. agile.api.pc.admin.Workflow vs agile.api.IWorkflow
Hello,
I've been working on code to set a default workflow on creation but I'm getting an error No signature of method: com.agile.api.pc.change.Change.setWorkFlow() is applicable for argument types: (com.agile.api.pc.admin.Workflow) values: [Deviations] Possible solutions: setWorkflow(com.agile.api.IWorkflow), getWorkflow(), getWorkflows()
IChange newChange = session.getObject(change.OBJECT_TYPE, change.getValue(1047));
newChange.setWorkFlow(newChange.getWorkflows()[0]);
I'm importing com.agile.api.* as well as com.agile.api.IWorkflow just in case, yet every time I define an IWorkflow it gets changed to api.pc.admin.Workflow thus preventing any methods from working. I tried to skip defining and just use the straight