The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Ben
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 25, 2021

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

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
James Conway
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 26, 2021

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

0 votes
Normann P_ Nielsen _Netic_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
June 14, 2023
TAGS
AUG Leaders

Atlassian Community Events