You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
So far I found no workaround for the Confluence permission scheme, let's describe the use case.
1. Content in a restricted space / page is created.
2. This content is required for colleagues which do not have access to the original content on the restricted space / page.
3. To avoid manual duplication and information sharing, I'd like to create a page in another space which duplicates the content of the original page automatically. With this I can avoid to adjust restrictions for the original page.
-> All Macros (Excerpt / Page Include) and Add-Ons I've tried so far are limited due to the permission scheme. Is there any solution for the above?
Hi @Patrick Neumann, Trevor here from the Confluence automation team. Depending on the exact details of your use case, I believe you can use Confluence automation to achieve this. @Alex Koxaras _Relational_ suggested using an automation rule with a 'Send web request' action, but that might not be necessary. There is an automation action named 'Copy page' that may fit your use case. Here is an example of a working rule that copies a page to another space and removes restrictions:
However, I understand people may want to publish the page before copying it. In that case, one solution might be to use a special label that marks the page as being ready for copying. Here is an example of a working rule that copies a page to another space without restrictions when a certain label gets added (the configuration of the 'Copy page' action did not change):
Another alternative is to use page statuses instead of page labels. In this case you would use the 'Page status changed' trigger instead of the 'Page or blog labeled' trigger.
Now, if you require the public copy of the page to be updated every single time the private copy is updated, then these strategies will not work. At this time you cannot use automation directly to update the body of a page. If you need to continuously update the body of the public copy of the page, I think your only option with automation is to do as @Alex Koxaras _Relational_ suggested, and use the 'Send web request' action, perhaps together with the 'Page edited' trigger.
Your requirement is just to copy a "restricted" page to a new page of another space, or you want to include any update of the restricted page to the new page on the other space?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Alex Koxaras _Relational_ ,
thanks for your answer. The requirement is to include the updates aswell.
BR Patrick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The only way I can think of, is to user Automation for confluence and REST API. Your rule should look like the following:
and inside the web request you should place the update page endpoint:
PUT /wiki/api/v2/pages/{id}
The page ID of the web request should be the page id of the target page.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Alex Koxaras _Relational_ ,
once more thanks for your reply.
However I was not able yet to get the Web Request running.
Do you have any hint for me?
Best Regards
Patrick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Patrick Neumann hi!
What are the results you are getting? What does the audit log say?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Alex Koxaras _Relational_ ,
below you can see the rule I've now defined.
I have to admit that I am not familiar with Web Request. So I am not sure about if the rule is complete.
Empty Target Page (ID highlighted yellow):
Audit Log:
BR Patrick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Trevor Angle ,
I am now using your approach by copying pages.
I use Date & Time in page title to ensure automation generate pages with different titles and does not throw any issues.
However I am currently investigating to further improve the rule by deleting outdated pages automatically.
Hi @Alex Koxaras _Relational_ ,
I am further investigating your solution, currently it throws below error which I was not able to solve yet.
Thanks again for your help!
Patrick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wow, that's a good idea! Maybe we can make an official template that does something like that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
really appreciate the feedback - thanks!
I'll give it a try with Confluence Automation and once done will let you know about my result.
Best Regards
Patrick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.