ScriptRunner for Confluence Cloud allows you to extend the functionality of Confluence Cloud by executing scripts to interact with Confluence as built-in scripts, listeners, script fragments, etc. Scripts can perform tasks such as updating a set of pages when a space is created or watching a whole page tree. Administrators have the power of the Groovy programming language at their disposal to respond to events by manipulating Confluence using the REST API.
ScriptRunner for Confluence Cloud follows the same principles as ScriptRunner for Confluence Server/DC. However, due to the differences in extension points between the Atlassian Connect framework used to write add-ons in the cloud and the Plugins V2 framework used in behind-the-firewall implementations, the execution model is significantly different. Scripts in ScriptRunner for Confluence Cloud do not execute within the same process as Confluence Data Center, and so they must interact with Confluence using the REST APIs rather than the JAVA APIs. Atlassian Connect is also inherently asynchronous, which means that when a script executes, the user may see the page load before the script has completed.
At this time it is not possible to implement Macros or CQL Functions.