Major Changes from the Legacy Workflow Programming Language
issuereference is never omitted. You can't call an issue method assuming that it references an issue from the context — you must reference the issue explicitly.
Property-related methods are spelled differently. Also, these functions are now properties. Get methods are simplified.
Fields-related keywords are now methods.
Global keywords and warning statements have changed.
workflow.message(<message>)(see '@jetbrains/youtrack-scripting-api/workflow' module)
workflow.check(<condition>, <message>)(see '@jetbrains/youtrack-scripting-api/workflow' module)
Date.now()(standard JS date API)
Some methods are changed completely:
new entities.Issue(<user>, <project>, <summary>)