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

I'm dreaming about something like this embedded on a page: {render:http://example.com/myurl/somefile.txt}

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:http://example.com/myurl/somefile.txt} 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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

1,891 views 25 10
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