I have a custom field of the type 'numeric'. I want to update this field within an automation rule using a scriptrunner script. I tried the following code, but it did not work...
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def customfield = customFieldManager.getCustomFieldObject("customfield_56003")
issue.setCustomFieldValue(customfield, "new value")
Any suggestions?