Forums

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

Disabling comments on Confluence page

shruthi sj
Contributor
April 4, 2018

Hello,

 

I would like to disable comments on required page on confluence and the confluence im using is Cloud based.

I tried html macro and script inside it, which did not work, can anyone help me here.

 

Thanks,

Shruthi SJ 

5 answers

6 votes
shruthi sj
Contributor
April 10, 2018

Thanks everyone for actively responding... i did manage to remove comment permission from space level itself. (Confluence Cloud)

Minh Tran
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 10, 2018

That sounds a way to achieve what you need.

2 votes
Jonathan Smith
Contributor
April 4, 2018

Server solution (not sure if works in cloud):

If your OK with hiding comments space wide, you can hide various elements though Space StyleSheet:

#comments-section {

display:none !important;

}

More info can be found here: https://confluence.atlassian.com/confkb/how-to-hide-elements-in-confluence-using-css-or-javascript-313458894.html

ManuR
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 11, 2018

To add to this reply, if you have something like the Style macro available, you could put a single Style macro on the pages you wish to disable comments on and use the CSS proposed by Jonathan above :)

Hector Barquero December 1, 2023

adding for readers: as of Dec 2023, Confluence server (7.19+) solve by @Jonathan Smith still works as a space-wide solution.

To note: removing comments this way does not delete them/resolve them. If you want to unhide them, simply remove the same syntax from your stylesheet:

#comments-section {
     display:none !important;
}

 

Perfect solution for tech writers cleaning up legacy knowledge base spaces and maybe wanting to get rid of some content without removing it entirely.

Jonathan Smith
Contributor
December 1, 2023

@Hector Barquero I hope your migration is going smoothly (if you are migrating right now).

0 votes
Minh Tran
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 4, 2018
0 votes
Thomas Schlegel
Community Champion
April 4, 2018

Hi @shruthi sj,

this app promises to hide various things from pages:

https://marketplace.atlassian.com/plugins/de.scandio.confluence.plugins.hideelements-macro/server/overview

I haven't tried it yet.

Another option is, putting a javascript on your page like this one described here:

https://confluence.atlassian.com/confkb/how-to-disable-commenting-on-an-individual-page-695107603.html

Thomas Schlegel
Community Champion
April 4, 2018

Ah, now I see, you are on cloud. Then, my answer is wrong, sorry. The app and javascript is only possible on server instances.

shruthi sj
Contributor
April 4, 2018

Hello Thomas,

https://marketplace.atlassian.com/plugins/de.scandio.confluence.plugins.hideelements-macro/server/overview .  - This doesn't work for cloud

 

https://confluence.atlassian.com/confkb/how-to-disable-commenting-on-an-individual-page-695107603.html . -  i have included in html macro in particular page but no luck :(

 

Thanks,

Shruthi

Minh Tran
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 4, 2018

@shruthi sj i doubt you can use those plugins in cloud. html macro is restricted for security reason in cloud as far as i recall

Suren Raj
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 4, 2018

Yes, HTML macro is a restricted function in Cloud.

0 votes
Suren Raj
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 4, 2018

Hi, Shruthi.

I understand you'd like to disable comments in specific pages, however, I'm afraid this feature was already requested in times past but not resolved, as you can check below:

* [CONF-7742 - Allow comments to be disabled on a page or blog post|https://jira.atlassian.com/browse/CONF-7742].

You might want to navigate to your Space Permission and disable Add Comment permission to certain user or group.

shruthi sj
Contributor
April 4, 2018

Hello Suren,

 

Thanks for the quick reply :)

I have done the same thing, remove add comment permission but this removes it from whole space.

Thanks,

Shruthi SJ

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events