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!
Hi @Kristie White ,
Not sure what the issue with ScriptRunner is.
As an alternative, we've built an addon which allows this without writing a script: Document Metadata for Confluence Cloud. This allows you to directly add page metadata like the page title, author, last editor, last edited date etc. into the page.
Thanks @marc -Collabello--Phase Locked- !
I have added this add-on. It does have everything I need. When I go to add any of the page metadata, I can see everything correctly in the app/macro. Unfortunately, once I add an item, I get the following error in my page. I have opened up permissions, but I still get the error. Not sure what I'm missing or going to the right location to open permissions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Kristie White ,
Thank you for reporting this. The error is highly unusual. Can you contact us at support@phaselockedsoftware.com such that we can help you directly?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.