hcengineering / platform

Huly — All-in-One Project Management Platform (alternative to Linear, Jira, Slack, Notion, Motion)
https://huly.io
Eclipse Public License 2.0
7.2k stars 573 forks source link

Send a notification to discord using webhooks #5396

Open wrtfix opened 4 months ago

wrtfix commented 4 months ago

Description of the issue

A user wants to receive webhook notifications whenever there are updates to a task they are subscribed to.

Steps to reproduce

  1. The user creates a new task in the task board.
  2. The user enters the webhook URL in the designated field for notifications.
  3. The user adds other users as subscribers to the task.
  4. An update is made to the task (for example, change of status, assignment to a new user, attach a file).

Expected behaviour

Actual behaviour

Currently, the task board application does not have functionality to send webhook notifications. Task updates are only reflected in the application's user interface.

Possible solutions

Mohamed-khattab commented 4 months ago

@wrtfix I'd be happy to work on this issue if it's still open!

wrtfix commented 4 months ago

Hi @Mohamed-khattab, I did it for a challenge. I don't know if it is okay for you @aplatoff. Best regards!

BykhovDenis commented 4 months ago

Hello @wrtfix. I appreciate your suggestion. Could you please clarify why having different callback URLs for issues is necessary? In situations where teams handle tens of thousands of issues, managing them can become quite challenging, and having distinct callback URLs might exacerbate the complexity. Could you share your insights on this matter?

wrtfix commented 4 months ago

Hi @BykhovDenis because you can use URL for Discord webhook now but if you want to do something like that for Teams app for example you can reuse this piece of code only for this reason.

BykhovDenis commented 4 months ago

I disagree only with this line Configure the webhook URL for each individual task.. For my opinion it appears more efficient to centralize notifications through a single endpoint or, alternatively, to designate one per project. I'm curious about the reasoning behind requiring distinct callback URLs for different tasks and would like to understand the rationale behind it.

wrtfix commented 4 months ago

yes that its a good point... but sometimes you only need monitoring a particular task and maybe would you like to send the behaviors in the particular group so for this reason I defined this ticket with this kind of possibility. But it's only my point of view.

ervandev commented 2 months ago

I would want this feature so badly, but maybe we could simply go with a single Discord webhook URL to capture all traffics on the board instead for simplicity?