Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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


0 votes


Accepted answer

Permanent link

 This works for me.

Marcelo Bilezker selected this answer as the correct answer

1 vote

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.

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Nov 17 '21, 8:18 p.m.

Question was seen: 950 times

Last updated: Nov 18 '21, 6:23 a.m.

Confirmation Cancel Confirm