How to set null value to an workItem attribute
If I try to set a timestamp value to an attribute of a workItem it works fine
workItemCopy.setValue(attrVar, timeStampValue);
workItemClient.saveWorkItem(workItemCopy, null, monitor);
This is ok, BUT,
if instead of timeStampValue I put null, as in:
if instead of timeStampValue I put null, as in:
workItemCopy.setValue(attrVar, null);
workItemClient.saveWorkItem(workItemCopy, null, monitor);
If fails.
So the question is: how to set attrVar to null
Accepted answer
This works for me.
Comments
ok. I think the field was set not be null. Thanks
If you want me to continue to answer, please consider to provide necessary information up front. E.g. check exceptions and the message you get. "It Fails" is not at all useful.
Also note that the built in timestamps (created, modified) are generated and can not be set. Only DueDate can.