2

Similar to this question, I would like to count the number of suggestions (not comments) a Google Docs has. The first answer of that question doesn't work for resolved comments, and neither works for suggestions. I would like to see how many total suggestions and/or comments a Google Doc received, all of which are now resolved.

1 Answer 1

2

Figured out an answer!

On a web browser, go to the Docs file. Press the comment icon to open the comments and suggestions panel; looks like this:

comments icon

Open Developer Tools (usually F12). In console, type the following: $('#docos-stream-view').childElementCount. The number that pops out is the total number of suggestions + comments (replies not counted).

Explanation

The command above is basically selecting the comments panel (using jQuery) and counting the number of HTML DIVs it contains. This is the number of comments/suggestions!

1
  • 1
    if people are looking to filter out the resolved comments, click the 'all types' drop down and select open. the js will still work to output the number of open comments you have
    – Kavelin
    Jan 20 at 17:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.