FIX functions in scriptrunner