Scripts are very simple when running in an issue context. All fields are available for use for the specific issue.