Hello! I am new to Confluence Cloud and ScriptRunner. I want a simple macro that will take the title of the Page I have created from a Template in Confluence Cloud and insert it inline with the body of the page so I don't have to retype the title again. I have been watching videos and looking over examples. I have attempted to write the macro, but it keeps failing. Any help would be greatly appreciated.
I was using the real simple example for Page ID in the ScriptRunner manual and trying Title instead.
return parameters.get("title")
On my Confluence page, I get the following error:
Macro failed to return a result: Script must return a string.
Thanks in advance!