diff --git a/backend/handlers.go b/backend/handlers.go index 1b29baf..992f667 100644 --- a/backend/handlers.go +++ b/backend/handlers.go @@ -203,6 +203,13 @@ func handleCreateCard(db *DB, hub *EventHub) http.HandlerFunc { serverError(w, err) return } + // card.created drives outbound modules (Jira) to create the issue. + // Emitted after assignee/tags are applied so the synced issue carries + // them. board.invalidated stays for the SPA's refetch path. + hub.PublishJSON("card.created", c.ID, "", map[string]string{ + "card_id": c.ID, + "column_id": body.ColumnID, + }) publishInvalidated(hub, c.ID, body.ColumnID) infra.HTTPJSONResponse(w, http.StatusCreated, c) }