Forums

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

Can I prevent Comments being posted on particular page?

Rodney Hughes
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.
September 21, 2018

We have a requirement where we do not want users to be able to Comment on selected particular pages in the Space (neither at the bottom of the page, nor in-line) but we don't want to block Comments on the other pages.

I have set the page edit Restrictions to just myself but still others can post a Comment :(

How can I block Commenting on a particular page?

3 answers

0 votes
Irina_Bel_Stiltsoft_
Atlassian Partner
March 3, 2022

Hi @Rodney Hughes ,

I can suggest you a workaround with Talk - Advanced Inline Comments for Confluence. When you disable Comments permissions over the space for specific users or groups, you disable both inline comments and page comments functionality for them. The Talk comments work with Pages or Comments permissions. Thus, when you enable only Page permissions over the space and restrict editing on specific pages for the same users or groups, these users will see neither inline comments nor page comments. In this case, a user can only add inline comments on other pages where users can edit permissions. 

To wrap up: Page comments on a space level + restrict editing on some pages.

0 votes
Bill 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.
September 23, 2018

I can't take credit for the basic concept of this macro (but I don't remember where I found it). It basically uses a white tape approach to inhibit inline commenting via CSS.

## No macro body

## @noparams
<style> button[data-key*=inline-comment] { visibility:hidden; }
div#inline-dialog-selection-action-panel.aui-inline-dialog { visibility:hidden; }
</style>

The rest of the my version of the macro add a note banner to the top of the page (at the macro location to warn the user that commenting has been disabled - key to avoid lots of support questions as to why commenting is not working.

You may be able to do the same thing to "inhibit" comments at the bottom of the page.

0 votes
Stefan Kohler
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.
September 21, 2018

Hi @Rodney Hughes,

This is currently not possible with Confluence out-of-the-box. There are a couple of add-ons available that could help you, please have a look at

Another option is to create your own user macro or script, but it requires a bit more technical insight then add-ons :)

There could be other add-ons out there, but these I know and have good experience with.

Cheers,
Stefan

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events