any way to embed MongoDB query results into Confluence?

I'd like to embed some content from a MongoDB query into a Confluence page, much in the same way you can embed arbitray SQL query results. Anyone think of a clever way to do this? There doesn't seem to be a plugin to do it directly, so that not being available, is there some sort of widget to be used to do it?

1 answer

1 accepted

Accepted Answer
0 votes

How about using {beanshell} macro, stuff in some Java code to pull out the JSON objects from DB, and do out.println in the Wiki format of Confluence? Haven't tried this myself, but should work.

Thanks Renjith, I wasn't aware of these macros (including hte Groovy one). As long as I have the driver jar available this should work fine. Thanks much

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 11, 2018 in Confluence

What are your project planning tips?

Hello Community,  Jessica here from the Confluence product marketing team! Today I wanted to get your takes on project planning –– what works, what doesn’t, how do you know if you’re doing it r...

210 views 0 3
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