Hello,
I have a requirement to clear value of date picker custom field making it null using script runner post function. I have tried the below but doesn't seem to work for date picker CF.
// Getting custom field object
def cfoFuncDate = customFieldManager.getCustomFieldObjectByName("QA Deployment Date")
// Getting custom field value
def cfFuncDate = issue.getCustomFieldValue(cfoFuncDate
if (cfFuncDate) {
issue.setCustomFieldValue(cfoFuncDate, null)
}
Kindly help.