Discourse Workflows

@j.jaffeux Following up on my question above, I’ve opened a PR which adds an Event action to Workflows:

It adds:

  • Event → Close event
  • Event → Open event

The action takes a topic ID, resolves the event from the topic’s first post, and updates the event through the normal post-edit/Event synchronisation path.

I’ve tested the original direction of the use case with:

Post created → Event / Close event

using Input → topic.id.

A reply to the event topic then closes the event while leaving the topic itself open, and the change appears live in the UI.

The PR includes unit/integration coverage, and the full discourse-events suite passed with 1124 examples / 0 failures.

This addresses the Event action side of the use case I mentioned above. The user/category/email-origin conditions can then be handled separately by the workflow trigger/conditions.

2 Likes