Is it possible to create a Space or Page from SQL data? Would be willing to use any available plugins. Ideally, an addition of a row in SQL would trigger the creation of the Space or Page. Would anyone be willing to point me in the right direction?
Confluence Command Line Interface has a runFromSql that can do actions based on an SQL query. Actions like storePage or addSpace. That provides a base automation enablement, but there are lots of things to consider. Do you have control over the table columns or does a column have an insert timestamp? What about if a row is updated? Triggering from the database could be possible, but it is more likely you would drive the automation from timed queries of the database. You need some sort of job scheduler - my favorite is Bamboo :). If you use Bamboo for this type of thing, then there is CLI Plugin for Bamboo to make it easier. Or you can do some other scripting.
Bob, thank you for the quick response. Your plugins are a big inspiration for this question and make me feel like what I am trying to achieve is possible. We do have control over the table columns and I believe the column has an insert timestamp. If a row is updated I would probably have to create another "update" script that goes and updates the Space or Page. If I was to trigger from the database, are there any of your plugins that I would be able to call from an MSSQL job? Most of them seem to be called from within Confluence, but I have a very limited understanding of it all. I had not heard of Bamboo, so thank you for that. It seems a bit complicated for what I would use it for, but it looks like you may be able to create something simple without too much trouble.
If you have any other suggestions I would love to hear them. Either way, looks like I have quite a bit of reading and testing to do!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.