Converting Include Pages Macro to Include Version
It's difficult to manage multiple Include Page macros on one page. A REST endpoint is included in ScriptRunner for Confluence, which converts all instances of Include Page to Include Version.
The version number is specified to be the current latest version, so the page contents should be identical in all instances. The page contents remain identical until one of the includes is modified.
Create the REST endpoint
You can easily hook up this REST endpoint using a web item. Follow these steps to create the web item:
The following image is the result of this web item being configured:
Note: This result only appears on the pages that contain the Include Page macro.