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?
Hello,
You could use the Power Scripts for Confluence add-on:
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:
number pageId =
123456
;
CComment[] comments = getComments(pageId);
for
(CComment comment in comments) {
deleteComment(comment.id);
}
With this plugin it is easy: https://marketplace.atlassian.com/plugins/aptis.plugins.deleteAllComments
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andreas,
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How about create a page that uses the SQL plugin. That would give you access to the comments.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, but that will not be comfortable enough for our authors, as they need a web based way to do this..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Andrew.
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.