We have several very long discussions on a Confluence Page, that we want to have deleted, after the things are finailzed. Is tehre a comfortable way to do this?
Hi Andreas,
You could do this with the Confluence Command Line Interface plugin - https://marketplace.atlassian.com/plugins/org.swift.confluence.cli - which has a removeComments (https://bobswift.atlassian.net/wiki/display/CSOAP/Documentation#Documentation-removeComments) command.
Would that work for you?
Andrew.
Thank you, but that will not be comfortable enough for our authors, as they need a web based way to do this..
Ah, ok. There are couple of open feature requests (https://jira.atlassian.com/browse/CONF-3902 and https://jira.atlassian.com/browse/CONF-5023) relating to bulk deleting comments via the web interface, but they haven't been implemented yet. Alternatively, anyone with the remove comment permission on a space can delete the comments one by one.
How about create a page that uses the SQL plugin. That would give you access to the comments.
With this plugin it is easy: https://marketplace.atlassian.com/plugins/aptis.plugins.deleteAllComments
Hello,
You could use the Power Scripts for Confluence add-on:
https://marketplace.atlassian.com/apps/1219507/power-scripts-for-confluence?hosting=server&tab=overview
I've found Power Scripts for Confluence really handy for Confluence admins who want to automate their work and apply bulk actions to Confluence. And it is a free add-on:
You could get all comments for a page and then delete them. Your script would look like this:
<span>123456</span>;CComment[] comments = getComments(pageId);<span>for</span> (CComment comment <span>in</span> comments) { deleteComment(comment.<span>id</span>);} <span>number</span> pageId =<span> </span>
<span>123456</span>
;
CComment[] comments = getComments(pageId);
<span>for</span>
(CComment comment <span>in</span> comments) {
deleteComment(comment.<span>id</span>);
}
You can do it using built in scripts from script runner to bulk delete comments from one or more pages, you can also specify comment age or delete all. Hope this helps.
See this for more details: - https://scriptrunner.adaptavist.com/5.0.5/confluence/builtin-scripts.html
Regards,
Priyanka Lavania
It looks like you're new here. Sign in or register to get started.