I am trying to trigger a webhook whenever a topic is marked as solved. When I mark a case as solved I do not see a webhook being triggered.
Am I missing something? Does the solved plugin not trigger a webhook?
Users are discussing the lack of webhook support for the âsolvedâ action in Discourse. jordan1909 noticed no webhook triggers when marking a topic as solved, and zogstrip confirmed the discourse-solved plugin doesnât currently support webhooks. sam marked the feature as planned, suggesting that since marking a post as solved technically edits it, a âpost-editedâ webhook could be extended to include solved status via custom fields. rbrlortie confirmed the need for this in systems tracking user actions and awarding points, asking if itâs in the backlog â sam confirmed it is, but not scheduled for release; self-hosters can accelerate progress by submitting a PR. fzngagan volunteered to implement it, and sam encouraged them to include tests. Later, blake submitted a PR (#85) adding a dedicated âsolvedâ webhook option for the plugin, visible in the webhook configuration UI. The feature is now under active development and awaiting review.
I am trying to trigger a webhook whenever a topic is marked as solved. When I mark a case as solved I do not see a webhook being triggered.
Am I missing something? Does the solved plugin not trigger a webhook?
The discourse-solved plugin does not trigger webhooks. I donât think we have a WebHook API for plugins.
Ah crap.
I would have thought the updated webhook would have been triggered.
I am marking this as planned, we got to expose something here, technically the post is âeditedâ so maybe we should expose âpost-editedâ when a post is marked solved. I am pretty sure its stored in a custom field so we could always ship that with the hook.
We are adding Discourse as a forum to a system which tracks user actions and award points. Our system tracks content creation and interaction.
We successfully used webhooks to track post & topic creation but there doesnât seem to be anything for post_edited or post_solved.
Is this in the backlog?
In the backlog but not slotted for any release yet, if you are self hosting and wish to get this to move faster only way is to submit a PR with the proposed improvement.
@sam
I would like to look into this.
Iâll try to build that feature for the solved plugin.
You can give it a shot, be sure to include a test.
I created a PR for triggering a solved webhook when marking a post as answered/unanswered:
https://github.com/discourse/discourse-solved/pull/85
When the plugin is installed a solved webhook option will appear when creating/editing a webhook