Sharing content between two Confluence OnDemand accounts

We're collaborating with an agency.

They have a Confluence onDemand instance. We have one as well.

If they create pages in their instance that has to do with our project, is there a way we can see them in our Confluence? Or vice versa?

1 answer

You could easily generate a page on your site that is a table of links to pages on the other site. While you could also copy the pages using similar techniques, I would think linking is better. You will need some criteria for determining "has to do with our project" - probably using a one or or more of space location, Confluence search, labels, or a regular expression on titles. All are supported by Confluence Command Line Interface using either getPageList or getContentList. You would set the action to run on a regular interval (hourly ?) using your favorite job scheduler (or even better, Bamboo). Run the action to create a csv file from one site and then use addAttachment to the other site. Use the CSV macro to display. Example output describes the techniques and shows live examples.

Thanks Bob. I presume that each user in our onDemand instance would need to be a user in their onDemand instance as well? I.e. it's not possible to share pages so we don't have to create user's in accounts?

Yes, for linking, they would need accounts on the other site. If this is not possible, then, you have to go with the copy page option. In that case, use the getContentList option as it can search by change time in addition to the other criteria, then use the targetServer parameter on the copyPage action.

There is a third option, Include-remote Macro. It may work for relatively simple content, but it has some limitations for general content.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

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 ...

910 views 23 12
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