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:
workItemCopy.setValue(attrVar, null);
workItemClient.saveWorkItem(workItemCopy, null, monitor);
If fails.
So the question is: how to set attrVar to null
|
Accepted answer
![]()
Ralph Schoon (63.3k●3●36●46)
| answered Nov 18 '21, 4:30 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER This works for me. Marcelo Bilezker selected this answer as the correct answer
Comments ok. I think the field was set not be null. Thanks ![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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.
|
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.