Dear Team,
Am facing error in Painless script in version 7.3. Same script is working fine in the version 6.5.3. Please help to identify the issue.
Error message : Script is invalid. View script preview for details(Attaching the screenshot)
Below is the script
if (doc['result.state'].value == "Resolved"){
return "Resolved";
}else if (doc['result.state'].value == "Closed") {
return "Closed";
}else if (doc['result.state'].value == "New") {
return "Pending";
}