Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

synchronize and update documents

zhaohongm
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 1, 2023

How to synchronize and update documents in space A to space B, and after modifying documents in space A, synchronize and modify them in space B. All users of space B can view it, but all users of space B do not have access to space A

2 answers

1 vote
Rilwan Ahmed
Community Champion
August 1, 2023

Hi @zhaohongm ,

Welcome to the community !!

This is not possible in native confluence. There is include page macro in the confluence but it respects space permissions and page restrictions, so be sure to check who can view the page you're including.

Check if 3rd party plugin Comala publishing suits your requirement. 

0 votes
Bobby Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 2, 2023

Hi @zhaohongm 

This is something that is possible with ScriptRunner for Confluence

With ScriptRunner, you can create a listener that listens for page updates in a specific space. You can then write a script that will execute when these conditions are met. 

Your script uses Confluences JAVA API to interact with Confluence. Luckily, there is already a script that looks like it meets your requirements in our Script Library: How to sync pages

Hope this helps!

Rilwan Ahmed
Community Champion
August 2, 2023

Hi @Bobby Bailey ,

Page include macro does the same task. Is there any difference by using the script ? 

Bobby Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 2, 2023

@Rilwan Ahmed as you mentioned the macro will respect the permissions of the page you are including. 

So, if I were to include a page from Space A in a page from Space B, and a user who had access to Space B but not to Space A tried to view it they would not be able to see the content, I believe that is correct?

With a script, you can programmatically copy the changes made on a Page in Space A to a Page in Space B. This means that users who have access to B but not A would be able to see the mirror of a page in Space A. 

This way, you can select a number of pages from Space A that have mirrors in Space B that can be viewed by everyone. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events