Hi,
I need to have the custom fields to be empty when I am closing the issue so that while closing the issue I can update the latest values in that custom field. The custom field is Text single line type. I tried below code in validators, but getting an error. Kindly help.
import com.atlassian.jira.component.ComponentAccessor
def cf = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Ground")
issue.setCustomFieldValue(cf, null)
Jira Version - 7.6 