Hi,
we use Comala Documents (former Workflow) in some Confluence spaces.
We need to create a copy of an approved page when a certain label is set on that page.
I thought about using ScriptRunner as it can handle Comala approval events with a custom event handler.
Anyway, I've no ideas how to copy a page from an existing one using a groovy script. Are there any hints on documentation or example scripts? The build in scripts for ScriptRunner don't help me here.
Any idea on a bit more detailed documentation?
Best regards
JP
I can't help with ScriptRunner but I wonder if you have considered the Comala Publishing integration. You can set it up to only publish a page when a label is present, e.g.:
{workflow:Different-space publishing with a label}
{state:Editing|submit=Review}
{state}
{state:Review|approved=Published|rejected=Editing}
{approval:Review}
{state}
{state:Published|update=Editing|final=true}
{state}
{trigger:statechanged|state=Published|haslabel=your-label}
{publish-page}
{trigger}
{workflow}
If this doesn't work for your use case please do share more details and I'll see if there are any other ways we can help with this.
Kind regards
James
Senior Product Manager at Comalatech
Hi,
thanks for the idea & I'm sure this will work, but with Comala Documents being the most expensive app we use, right now we're not able to spend more on Comala Publishing.
I'll check myself for a groovy script solution.
Best
JP
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.