Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,552,543
Community Members
 
Community Events
184
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

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 Leaders.
Nov 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

Like # people like this

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events