It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is it possible to create a template page daily in a particular space as scheduled job?

Morgan Thunder Dec 01, 2015

This question is in reference to Atlassian Documentation: Scheduled Jobs

I'm wondering if there is a way to use Scheduled Jobs to automatically create a daily-standup notes page for folks to fill in. If not, is there an alternative to buying a Command Line Interface plugin and creating a cron to do the job?

2 answers

1 vote
Ferenc Kiss [Midori] Dec 01, 2015

If you want to save the license fee of the CLI add-on, you could very easily implement this:

  1. Use a single call to the REST API to create a page (see the doc page):

    curl -u admin:admin -X POST -H 'Content-Type: application/json' -d'{"type":"page","title":"new page","space":{"key":"TST"},"body":{"storage":{"value":"<p>This is a new page</p>","representation":"storage"}}}' http://localhost:8080/confluence/rest/api/content/ | python -mjson.tool
  2. When it is running stable, schedule this via crontab or the native scheduler of your OS.

Should be dead simple.

 

Morgan Thunder Dec 02, 2015

Thank you - this sounds very hopeful! Do you know of a way to reference the current date in the page title? So that it wouldn't overwrite the previous one each time it is created? Also do you think there would be a way to create a new page with content from an existing template using this method?

0 votes
Fabio Racobaldo [Herzum] Community Leader Dec 01, 2015

Hi Morgan,

You can develop your own confluence plugin that implements a job module (https://developer.atlassian.com/confdev/confluence-plugin-guide/confluence-plugin-module-types/job-module).

At this time there's no plugin that provides this feature.

Regards,

Fabio

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

2,331 views 11 27
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you