# Private topics not showing up in Posts created report

**URL:** https://meta.discourse.org/t/private-topics-not-showing-up-in-posts-created-report/382079
**Category:** Data & reporting
**Tags:** dashboard-reports
**Created:** [September 9, 2025, 3:43pm UTC](https://meta.discourse.org/t/private-topics-not-showing-up-in-posts-created-report/382079 "2025-09-09T15:43:04Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![tknospdr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tknospdr/32/529762_2.png) [@tknospdr](https://meta.discourse.org/u/tknospdr)
#### Post date: [September 9, 2025, 3:43pm UTC](https://meta.discourse.org/t/private-topics-not-showing-up-in-posts-created-report/382079/1 "2025-09-09T15:43:05Z")

</div>

I’m trying to figure out why some reports that should have data points on them are blank.  
If you look at this screenshot, you can see that I just created a new topic and there is a post under it:

 ![topic-post](https://global.discourse-cdn.com/meta/original/4X/c/c/5/cc54c95b5f5ade4ca9e8dd3b7b347df1b45904ca.jpeg)

And if you look at the report for posts, it says there haven’t been any since Aug 14th, that’s not right. There have been plenty, including the one I just made 40 minutes ago to test with.

 ![blank-report](https://global.discourse-cdn.com/meta/original/4X/d/2/5/d25a559e890a938da795b8d9772d705d01e9905f.jpeg)

How do I troubleshoot this?

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [September 9, 2025, 4:11pm UTC](https://meta.discourse.org/t/private-topics-not-showing-up-in-posts-created-report/382079/2 "2025-09-09T16:11:57Z")

</div>

Do you use any plugins that might change something about these topics or posts?

Something like [Private Topics Plugin](https://meta.discourse.org/t/private-topics-plugin/268646)

---

<div class="post-metadata">

### Author: ![tknospdr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tknospdr/32/529762_2.png) [@tknospdr](https://meta.discourse.org/u/tknospdr)
#### Post date: [September 9, 2025, 4:15pm UTC](https://meta.discourse.org/t/private-topics-not-showing-up-in-posts-created-report/382079/3 "2025-09-09T16:15:46Z")

</div>

I can’t think of anything. I use some plugins, but I don’t think I’ve added any new ones since the date that the last new post showed up in that graph.

Yes, I use the private topics plugin. Would that stop the system from seeing posts? It still reports on new topics correctly:

 ![topic-topic](https://global.discourse-cdn.com/meta/original/4X/7/7/8/778dd535afc5b73ad1c034fb2c6bd498a8e8cdea.jpeg)

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [September 9, 2025, 4:31pm UTC](https://meta.discourse.org/t/private-topics-not-showing-up-in-posts-created-report/382079/4 "2025-09-09T16:31:24Z")

</div>

> [@tknospdr](#):
>
> Would that stop the system from seeing posts?

The system can still see them. But the plugin changes the code that defines what counts as a public post.

The report counts public posts

> <https://github.com/discourse/discourse/blob/db974047e4a3bba8ef31f63b68e46084558a2a5b/app/models/concerns/reports/posts.rb#L18-L18>

And the plugin changes that definition

> <https://github.com/communiteq/discourse-private-topics/blob/2b327f3e93bae045e2ee78daff23d7ebcdfd756c/plugin.rb#L73-L81>

If private topics is enabled and the post is in a category where the plugin is enabled, it’s excluded, so it’s not counted

---

<div class="post-metadata">

### Author: ![tknospdr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tknospdr/32/529762_2.png) [@tknospdr](https://meta.discourse.org/u/tknospdr)
#### Post date: [September 9, 2025, 4:58pm UTC](https://meta.discourse.org/t/private-topics-not-showing-up-in-posts-created-report/382079/5 "2025-09-09T16:58:11Z")

</div>

Crap, that’s the antithesis of what I need.  
The only category that my boss cares about statistics for is our support forum, and that needs to be private for ticket segregation.

Is there any way to get stats on those posts?

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [September 9, 2025, 6:07pm UTC](https://meta.discourse.org/t/private-topics-not-showing-up-in-posts-created-report/382079/6 "2025-09-09T18:07:55Z")

</div>

[Data explorer](https://meta.discourse.org/t/32566?silent=true) should work to get the data. In this topic is the query which returns the post count per date like the dashboard report

> [@Dashboard Report - Posts](https://meta.discourse.org/t/dashboard-report-posts/288579):
>
> This is an SQL version of the Dashboard Report for Posts. This report provides a daily count of posts created within a specified date range. It is designed to track the activity in regular topics, excluding posts from private messages and other special archetypes. --[params] -- date :start\_date -- date :end\_date SELECT p.created\_at::date AS "Day", COUNT(p.id) AS "Count" FROM posts p INNER JOIN topics t ON t.id = p.topic\_id AND t.deleted\_at ISNULL WHERE p.created\_at::date BETWEEN :sta…

I think it won’t be affected by Private Topics, so it could work for you without changing anything.

---

<div class="post-metadata">

### Author: ![tknospdr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tknospdr/32/529762_2.png) [@tknospdr](https://meta.discourse.org/u/tknospdr)
#### Post date: [September 9, 2025, 6:33pm UTC](https://meta.discourse.org/t/private-topics-not-showing-up-in-posts-created-report/382079/7 "2025-09-09T18:33:54Z")

</div>

That got me most of the way there, thanks.  
I requested some additional parameters on that page to dial the query in more.

Seems like there’s enough people using Discourse as a ticketing system that it would be worthwhile to build a stats page to track things like time to first post after new topic created, and total elapsed time till topics are marked solved etc to better cover this use case.

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [September 9, 2025, 6:42pm UTC](https://meta.discourse.org/t/private-topics-not-showing-up-in-posts-created-report/382079/8 "2025-09-09T18:42:44Z")

</div>

> [@tknospdr](#):
>
> things like time to first post after new topic created,

There is an admin report for “time to first response”.

And there are also lots of other queries in #data-reporting  
[Topics stats of Solved/Unsolved topics, inc. 'time to solution'](https://meta.discourse.org/t/topics-stats-of-solved-unsolved-topics-inc-time-to-solution/275393) is one you might be interested in. But I think it needs an update to reflect the changes on the solution plugin made in spring. [Time to first response by group members](https://meta.discourse.org/t/time-to-first-response-by-group-members/275118) and [Solved Topic and Moderator Response Stats by Category](https://meta.discourse.org/t/solved-topic-and-moderator-response-stats-by-category/302303) might also be interesting.

[ask.discourse.org](http://ask.discourse.org) is also very good at helping you to write queries that return the data you need

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [September 22, 2025, 2:20pm UTC](https://meta.discourse.org/t/private-topics-not-showing-up-in-posts-created-report/382079/9 "2025-09-22T14:20:15Z")

</div>

I shifted this topic across to #data-reporting so it can be pursued further here.

I agree that private posts should show up in reports, somewhere! It would be neat if the Posts report could have filters to show public or private posts, or both.

Well spotted that this has to do with the private topics plugin, @moin! 👏
