Cloning pages on Confluence

Lucas de Souza October 9, 2023

Hello everyone.

We have a weekly meeting in which we post the notes on confluence and name the page weekly meeting Date is XX.XX.XXX.

My question is at the moment we manually clone the page and change the name with the new date on the header, is there any way of doing that automatically maybe with an automation, script or macro?

Thanks a lot.

1 answer

1 accepted

3 votes
Answer accepted
Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 9, 2023

Hi @Lucas de Souza 

You can do this using Automation.

You need to create the Template page first, which will be used to create the page:

  • Go to Space Settings
  • Under Look and Feel, select Templates
  • Select the Create New Template button in the top-right corner, and create the Template

 


Next, you can create the Automation Rule (from the relevant menu in Space Settings):

  • Trigger: Scheduled
    • Set the run rate here - eg. once per week
  • Action: Publish New Page
    • Set Space / Parent Page
      • Page Title = Weekly Meeting - Date {{now.convertToTimeZone("Pacific/Pago_Pago").format("dd/MM/yyyy")}}
    • Set Template Space / Template

 


^ There's a smart value above for the date:

{{now.convertToTimeZone("Pacific/Pago_Pago").format("dd/MM/yyyy")}}

This ensures...

  • The date is set to now
  • The timezone entered is correct, otherwise it defaults to UTC. You can see a full list of available timezones here: https://joda-time.sourceforge.net/timezones.html
  • The format is set as required (you can change this as needed)

Let us know if this works!

Ste

Lucas de Souza October 11, 2023

Thanks a lot for your help.

I will try that and let you know if it works for me.

Like Ste Wright likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events