Skip to content

Conversation

@petzbloom-sudo
Copy link

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!

## 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 "no-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
Copy link
Author

@flavorjones here is the PR ;)

@jorgemanrubia
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants