Modulify

Count the open comments

count_open_comments

Counts the open comment threads on a site, the number the product shows on the comments badge.

Only open root threads count. Resolved and deleted threads are not counted, and neither are replies, so the number can be smaller than the number of threads list_comments returns. Threads opened by people outside the workspace through the shared link are counted too.

Use it to find out whether anything is left to address without reading every thread. Resolving a thread with resolve_comment takes it off the count, and reopen_comment puts it back. See Comments.

Inputs

Input Type Required Description
projectId string Yes The site id.