live data feed to Confluence

Is there an confluence API available using which I can have a live data feed to my confluence fields. For ex: Can I connect an application data to Conflunce so that whenever the application data is changed it gets reflected in my Conflunce page. This applications is not a Atlassian product. Please advise

1 answer

I'm not sure which tools you refer to when you speak about "confluence fields". I assume that you employ some macro or table on your Confluence pages to specify properties (if you use a third party add-on there may be other solutions than the following ones).

The page properties can be accessed via a REST API, but I do not know of an API that allows to change them. You may use the Confluence REST API to update pages. I do not know if the API allows to update only parts of a page. But if it is fine for your use case to download the whole page, update the relevant parts and upload it, the REST API can probably do this (if the page is only updated automatically, the page can be just updated without prior read). Your remote information systems needs to call this REST API on change events or provide an API so that you could program the sync process.

I personally use our projectdoc Toolbox that allows to define document properties (very similar to page properties) and sections. Via an extension it also provide a REST API to update these properties and sections (on the server the whole page will be saved, but from the client side view it seems that the property is an independent resource). This way we can update information on our Confluence pages using (for example) cURL. Besides the use of bookmarklets this is currently our only use case. 

The usage tip "Confluence as the Information Hub" on our website gives a short overview over the tools of the projectdoc Toolbox to link or transclude content.

The projectdoc Toolbox is a commercial add-on for Confluence server. It is available on the Atlassian Marketplace. For the REST API you would need to install the Web API Extension (which is based on the commercial add-on, but is free of charge). Please note that I am one of the authors of this add-on (so may answer may be biased :) ).

More information on the projectdoc Toolbox can be found in the online manual.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,169 views 4 6
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