set creator of IAttachment (client side)
Accepted answer
Well, you can try to use the INTERNAL interface com.ibm.team.workitem.common.internal.model.Attachment . Be warned, that is internal API and can change and so on. Example:
((Attachment) newAttachment).setCreator(value);
Comments
szasz gabor
Aug 29 '14, 3:06 a.m.There is a method IAttachment IWorkItemServer.saveAttachment witch create IAttachment from Attachment. If I can use this method in client side, I have possibility to set the uploaded attachment creator.
Someone has tried to use this method in client side?
sam detweiler
Sep 01 '14, 8:54 a.m.behind each I* interface class is a concrete class implementation of the interface.
those classes are in the internal libraries.
the Attachment implementation class has a setCreator(IContributorHandle);
you cast the IAttachment to Attachment, then you can use the setCreator method.
and then save like always
just a reminder, internal classes are not documented, and could change at any time, use at your own risk. you cannot open a defect against and internal api change