Here you can find information on migrating from ScriptRunner for Confluence Server to Confluence Cloud and vise versa.