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!
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Community, Jessica here from the Confluence Product Marketing team! July’s community challenge is all about sharing pictures — and as an extension of our first post on what ...
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!
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