Creating pages automatically


i want Confluence to check a directory with powerpoint-presentations once a week (or once a month..).  For every new presentation a new site should be created and the presentation has to be updated automatically then.

How can i do that? Is this very complicated?

The only thing I know is that I have to write code.

2 answers

2 votes

This doesn't add a lot to the question since you last asked it.

You still need to explain what a "site" is. 

The code you need to write will need to be either an add-on (or script if you have Script Runner) for Confluence that can run on a schedule, go out to where you are putting the files and pull them in, OR an external program that reads the location and uses REST to poke the data in.

Make that decision first, if it's going to be done by Confluence or by an external process, then we can point you at the basic stuff you need.

So, what do i have to do?

To be honest, I don't know anything. I have no clue where to start.

You need to decide how you are going to do this.  Is it going to be done by Confluence or by an external process?

Let's say by Confluence

Ok, start at as you'll need to write an add-on for Confluence.

You might find it quicker and easier to use the Script Runner add-on though, it allows you to write code directly in the application without having to write all the structural stuff that an add-on requires, and it has a scheduler built in, so you can use that to do the regular pull.

Whichever way you do it, your code will need to read data from somewhere (the list of stuff to import and the content), work out how to structure it in Confluence and then create what you want.

Okay, thank you.

Do you also have any links or hints on how to do it with REST?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Dec 18, 2018 in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

473 views 3 18
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you