Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Get announcement for unanswered questions after X hours?
sbankey
New
Hi everyone,
Does anyone know of code or an addon where the system will send a notification to a specific role if a question has gone a certain amount of time without being answered? For example, all users with the role "support" get a notification if a question has not received an answer after 24 hours.
0
Answers
There is no great solution for an application that is executed on request to generate a time tick.
You could create a plugin that provides an endpoint to show discussions/notify users when a question hasn't been answered. Then create your OS's native cron job to call the endpoint every hour or so.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
There is already a filter for unanswered questions
https://vanillaforums.org/discussions/unanswered
which can be fed
https://vanillaforums.org/discussions/unanswered.rss
https://vanillaforums.org/discussions/unanswered.json
If you wish to send notifications ever hour, then you need via plugin endpoint which is secured (as not anyone can run it, local only or anonymised). Then you use the discussion model to pick out unanswered questions, and send notifications based on this.
Then use a cron job to trigger it.
It require a fair amount of work and knowledge.
grep is your friend.