Hi there,
This is what I am using in scripted fields
def sorDate = new Date().getTime() - doc['sor_idate'].value;
if (sorDate > 5){
return "crtical"
};
The field is defined as below and I have an error and cannot figure out what is wrong, would deeply appreciate the help. Thanks