Is there a way to render indirect sources as confluence pages?

I'm dreaming about something like this embedded on a page: {render:}

The idea is that I have some source file accessible via http which contains confluence markup. It might be in github and part of some source code, or it might be a dynamically generated report from some non-confluence automation. Either way I'd like confluence to read the url and use the markup read to replace the {render:} macro.

Does such a macro already exist?

2 answers

No, not that I am aware of. But there are similar examples, for instance the CSV Macro can get CSV data from a url. You can also use the Confluence Command Line Interface to copy external content into Confluence pages.

I'm not aware of anything either, although it would be a handy plugin to integrate with the Reporting plugin. You could write one which had a Supplier that would load the provided URL, and load it as text. Eg:

{report-info:url:"http://blah/blah.txt" > resource:as text|render=true}

Wouldn't be that difficult to write, although it could be considered a bit of a security risk...

Security is handled for csv and others using Macro Security Plugin, so that can be covered. It would be pretty simple to add if only there was some spare time :).

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

792 views 33 5
Join discussion

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