The following ScriptRunner for Confluence macros expand the Atlassian Include macro: