fizzy icon indicating copy to clipboard operation
fizzy copied to clipboard

Update event.json.jbuilder

Open petzbloom-sudo opened this issue 2 weeks ago • 1 comments

What this does

This PR updates the webhook JSON payload to include more useful information for integrations (like n8n or Zapier).

Specifically, it adds:

  • Card Description: The rich text content of the card.
  • Assignees: A list of user names assigned to the card.
  • Comments: A full history of comments on the card (including user, plain text, and HTML).

Why

Currently, the webhook sends metadata but misses the actual content of the card/comment. This makes it difficult to build automations that react to what users are actually saying or doing inside the card.

Note to Maintainers

I am a "low-code" contributor and do not have a local Rails environment set up to test this.

I wrote this code by following the patterns I saw in _card.json.jbuilder and _comment.json.jbuilder. I would appreciate it if you could verify that the syntax is correct and that it passes your test suite. Thanks!

petzbloom-sudo avatar Dec 08 '25 17:12 petzbloom-sudo

@flavorjones here is the PR ;)

petzbloom-sudo avatar Dec 08 '25 18:12 petzbloom-sudo

Hey @petzbloom-sudo thanks for the contribution. I don't think we want to render the HTML of all the comments in a card in the same request, as those could be a lot. Also, by inline the templates we make things a bit harder to understand. I will close this one.

jorgemanrubia avatar Dec 11 '25 06:12 jorgemanrubia