what other method can instead of it? auditableCommon.getPeer (server side)
server side:
IWorkItemCommon workItemCommon= auditableCommon.getPeer(IWorkItemCommon.class);
//set currentUser to approveaaa
IAttribute target= workItemCommon.findAttribute(newState.getProjectArea(), "approveaaa", monitor);
newState.setValue(target, auditableCommon.getUser());
auditableCommon.getPeer---> The method getPeer(Class<IWorkItemCommon>) from the type IAuditableCommon is deprecated.
what other method can instead of it?
IWorkItemCommon workItemCommon= auditableCommon.getPeer(IWorkItemCommon.class);
//set currentUser to approveaaa
IAttribute target= workItemCommon.findAttribute(newState.getProjectArea(), "approveaaa", monitor);
newState.setValue(target, auditableCommon.getUser());
auditableCommon.getPeer---> The method getPeer(Class<IWorkItemCommon>) from the type IAuditableCommon is deprecated.
what other method can instead of it?
Accepted answer
A search on this page reveals: https://jazz.net/forum/questions/76532/what-is-the-replacement-for-iauditablecommongetpeer
Comments
Thanks for your help!
But another error happened. Could you give me some advice?
I had submitted a new question.
https://jazz.net/forum/questions/134982/how-to-programme-the-prerequisites-in-pluginxml