Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,527
Community Members
 
Community Events
165
Community Groups

Create page via Scriptrunner when page is approved in Comala Document Management

Is it possible to have a page created from a template with Scriptrunner when a page has been approved (final state) in Comala Document Management?

To be specific:

1. I have created a workflow in Comala Document Management.

2. When the final status of the workflow has been reached (the page has been approved), a page should be created from a template. 

I found out that it is possible to use the Eventlisterner from Scriptrunner to activate it when a certain status is reached in Comala: https://docs.adaptavist.com/sr4c/latest/features/event-listeners/custom-event-listener/comala-document-management
Question about this: Is it possible to specify a specific workflow or would a script be activated whenever any workflow has reached the final status?

Unfortunately, I can't find any instructions on how to create a page from a template in Confluence using the event listener from Scriptrunner. Any information on this?

 

Kind regards,

Ben

1 comment

Hello @Ben 

I've checked with the development team and they explained that you will to use the WorkflowService method getActiveWorkflows to identify the workflow applied.

See https://comalatech.bitbucket.io/comala-workflows/6.16.0/apidocs/com/comalatech/workflow/WorkflowService.html#getActiveWorkflows-com.atlassian.confluence.core.ContentEntityObject-

Our customer success team are available to help you understand the API documentation if you need, you can reach out to them at https://support.comalatech.com

All the best

James

Like # people like this

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

205 views 1 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you