Forums

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

Creating pages automatically

Marcel Schwarze October 23, 2016

Hi,

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
Nic Brough -Adaptavist-
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.
October 23, 2016

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.

Marcel Schwarze October 25, 2016

So, what do i have to do?

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

Nic Brough -Adaptavist-
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.
October 25, 2016

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

Marcel Schwarze October 25, 2016

Let's say by Confluence

Nic Brough -Adaptavist-
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.
October 25, 2016

Ok, start at https://developer.atlassian.com/confdev/confluence-plugin-guide/writing-confluence-plugins 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.

Marcel Schwarze October 26, 2016

Okay, thank you.

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

Nic Brough -Adaptavist-
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.
October 26, 2016
0 votes
Marcel Schwarze October 24, 2016

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events