how do I clear a date field

KeithM2
Kilo Contributor

In the problem management form, when a new problem is created, the closed date defaults to the open date.   What is the best way to clear the value of that closed date and set the value of the closed date to when it is closed.   So when I open a new problem ticket, the closed date is blank and when I click on the "Close Problem" button, the closed date is set to today.   Any help is greatly appreciated.

2 REPLIES 2

CharlesR1
Kilo Guru

Hi Keith,



You can create a business rule on Insert which clears the field -



current.end_date = '';



Change 'end date' to the name of your field.



Cheers,



Charles


Anurag Tripathi
Mega Patron
Mega Patron

This behavior is OOB and in my instance it used to be like, start date = current , end date = tomorrow, duration = 1 day. This was the default value. I had to write conditions to skip some oob business rules to avoid this from happening.


I am not sure, but i think the OOB BR was 'Recalculate'


-Anurag