How can I find all Confluence comments?

Is it possible to do this without needing to use SQL etc?

I'd like to be able to run a search that finds all comments so that I can see if any can be dealt with by either answering them, deleting them etc.

Cheers,

4 answers

1 accepted

You may also want to take a look at the Reporting Plugin. It allows you to create custom reports in Confluence, for example to display the last 10 comments sorted by date (replace "ATall" with "@all"):

{report-table:maxResults=10}
 
{content-reporter:spaces=ATall|type=comment}
  {date-sort:content:modification date|order=descending}
{content-reporter}
 
{report-column:title=Date}{report-info:content:creation date}{report-column}
{report-column:title=User}{report-info:content:creator|link=true}{report-column}
{report-column:title=Page}{report-info:content:page|link=true}{report-column}
{report-column:title=Comment}{report-info:content:body}{report-column}
 
{report-empty}
_No comments found._
{report-empty}
 
{report-table}

Find more information about the Comment Supplier here.

Hope this helps

Remo,

Thank you, I am going to investigate the reporting plugin asap (i.e. as soon as I can find the time!) :)

Cheers.

Thanks for the reporting plugin example. Worked great for me.

Hi Mike,

you should be able to find all comments by searching for "type:comment".

This searches for all content of type "comment". For more details see

http://confluence.atlassian.com/display/DOC/Confluence+Search+Syntax

and

http://confluence.atlassian.com/display/DOC/Confluence+Search+Fields

Regards,

Tino

Tino, thanks, that worked!

I discovered after some experimentation that you have to enter it into the search field on the right, and then filter by space. If you use it within a space it doesn't work.

Thanks, you've just made my life a lot easier!

Cheers.

I've have the same issue and managed to see the comments but I want filter out the comments that are resolved.

I cannot find which field to use in order to do so.

I've tried state but didn't find the correct value to use it with.

Anyone knows?

Cheers.

Another way to view all comments is to use Bob Swift's SQL Plugin and then use a query like this:

{sql:dataSource=SQLDev|output=wiki}
SELECT CONTENTID, CREATOR, CREATIONDATE, LASTMODIFIER, LASTMODDATE, PREVVER, PAGEID, PARENTCOMMENTID FROM CONTENT WHERE CONTENTTYPE='COMMENT';
{sql}

Is there a way to show comments just in a particular page?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published 12 hours ago in Confluence

Think you know shares vs. @mentions in Confluence? Take this collab quiz.

To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...

96 views 2 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you