Hello ,
I have problem with this script :
if ( doc['entities.status'].value == doc['entities.statusesInformation.statusName'].value ) {
return doc['entities.executionDate'].date - doc['entities.creationDate'].date ;
}
When i execute it, i got this error :
lang":"painless","caused_by":{"type":"class_cast_exception","reason":"Cannot apply [-] operation to types [org.joda.time.MutableDateTime] and [org.joda.time.MutableDateTime]."}}}]},"status":500}
Thank you for your helps.