merge: jira sync on card creation (v0.5.1)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user