how to create document automatically and change to next states by a fixed date of a month

Owen June 11, 2024

We need below function (comala workflow function):

1. Create one document automatically by template;

2. Auto move to next state by a fixed date of a month (example 15th each month).

 

Thanks!

2 answers

1 accepted

2 votes
Answer accepted
Nino Stana June 11, 2024

Hello @Owen ,

In Confluence Data Center:

1. You can use >Labels< to attach a workflow to a specific template. You can set a label for a workflow and then add the same label to your template. When you create a page using the template, the workflow process will automatically apply to it. You can use >Sticky Labels< for more security on who can remove them.

2. By setting >Expiry Dates< to a state, you can add a >Content expiry transition< that moves it automatically to another state once that date is reached. 

I hope this helps. If you need more assistance, I'd be interested in hearing more about your use case and determining the best process. 

Owen June 11, 2024

@Nino Stana Yes, Thanks!

1. Do you know how to create page by script Runner or something else (example , auto create 1 doc on 1th each month)?

2. How to change the Expiry Dates automatically by script Runner (example 15th each month)?

Nino Stana June 11, 2024

@Owen I am not a developer, I can't help you with the technical details but I think you could achieve this by making use of APIs:

1. >Atlassian Confluence Data Center Rest API< - they seem to have an endpoint to create a page

2. >Comala Document Management Rest API< - We also have an endpoint for the expiry date that you could use to automate your process

Owen June 11, 2024

@Nino Stana Thank you very much!  Let me have a test. 

Like Nino Stana likes this
1 vote
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 12, 2024

@Owen If you are open to alternatives, then Better Content Archiving also supports changing a page to the "Expired" status when its expiration date is passed:

page-expiration-tracking.png

Note that you can specify the expiration date using plain vanilla page labels! The nicety here is that page labels can be manipulated manually and programatically with relative ease, using ScriptRunner or using the REST API.

It is something you may want to try.

(Discl. it is a paid and supported app developed by our team. Free for 10 users!)

Owen June 12, 2024

@Aron Gombas _Midori_ Good. Thank you!

Like Aron Gombas _Midori_ likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events