With outgoing webhooks, you can define a target service that receives updates on items within OpenProject (work package creation and updates, currently). These requests are performed with a fixed payload, so hooking that to a Slack webhook endpoint would not be of much use since it needs to receive the request in a way they define in their incoming webhooks API.
It would be possible to alter the payload with an additional option in the webhook plugin not to print our own APIv3 responses, but a different kind of payload. This is however not possible at the moment.
webhooks for work packages are emitted after the aggregation period of default 5 minutes. Every change you make in the frontend is being recorded, but only emitted if you have not made any change in the next 5 minutes to it to allow one continuous batch update. If needed, we could allow an option to the webhook to output the raw changes as they are being made.
Thanks for the update regading Webhook function. Now we understand how it is working.
Instead of triggering the output the raw changes, can we reduce the timing to 1 minute or 2 minutes, or even giving the option to Administrator how it shall be triggered, that would be fine.
When there are several updates on work package is happening (while webhooks are integrated with slack or time tracking software to notify or create tasks there), it will bring delay at other end. To reduce this delay, your idea of sending output as raw changes or one minute delay is needed 'instead of five minutes'.
How can we set the option of sending raw output to webhook as changes made? Is this going to be a new amendment to add to OpenProject Webhooks? Please let me know.
I can not setup webhooks for slack integration on open project community 10.4.1. I receive 400 error with message: missing_text_or_fallback_or_attachments. Anyone successful with this setup?
Hi, we are also looking forward for a possible integration with slack webhooks, we've been testing this on OpenProject 10.6.2 with no success. Is it going to be supported soon ? is there any workaround ?
Just stumble this issue recently, and then I found this thread, don't know it's still on open question or not after 2 years, but I have open the source code then I found the setting is on Administration -> Email and notification -> Aggregation
It's affected email notification and event notification, set to 0 if you want to send the notification imeediately after make changes or add some number if you want to delay the webhook call
Replies (10)
I would be interested in this as well.
Chris
With outgoing webhooks, you can define a target service that receives updates on items within OpenProject (work package creation and updates, currently). These requests are performed with a fixed payload, so hooking that to a Slack webhook endpoint would not be of much use since it needs to receive the request in a way they define in their incoming webhooks API.
It would be possible to alter the payload with an additional option in the webhook plugin not to print our own APIv3 responses, but a different kind of payload. This is however not possible at the moment.
Best,
Oliver
Hi @Oliver Günther
What is the response time or the latency time of the web hook to trigger the third party app after the event?
It looks that it is taking 15 or more minutes for the web hook to update the third-party app.
Even we tried with https://webhook.site for checking and it is delivering as batch I believe.
Could you please put some light for us to understand this latency time of web hooks triggering?
Thanks
Hi Xavier,
webhooks for work packages are emitted after the aggregation period of default 5 minutes. Every change you make in the frontend is being recorded, but only emitted if you have not made any change in the next 5 minutes to it to allow one continuous batch update. If needed, we could allow an option to the webhook to output the raw changes as they are being made.
Best,
Oliver
Hi Oliver,
Thanks for the update regading Webhook function. Now we understand how it is working.
Instead of triggering the output the raw changes, can we reduce the timing to 1 minute or 2 minutes, or even giving the option to Administrator how it shall be triggered, that would be fine.
When there are several updates on work package is happening (while webhooks are integrated with slack or time tracking software to notify or create tasks there), it will bring delay at other end. To reduce this delay, your idea of sending output as raw changes or one minute delay is needed 'instead of five minutes'.
How can we set the option of sending raw output to webhook as changes made? Is this going to be a new amendment to add to OpenProject Webhooks? Please let me know.
Thanks
-Xavier
Hi All,
Do you have any solution? It is really annoying that I cannot configure that parameter. 5 minutes is quite a long time.
Regards,
Szymon
I can not setup webhooks for slack integration on open project community 10.4.1. I receive 400 error with message: missing_text_or_fallback_or_attachments. Anyone successful with this setup?
Hi, we are also looking forward for a possible integration with slack webhooks, we've been testing this on OpenProject 10.6.2 with no success. Is it going to be supported soon ? is there any workaround ?
Hi Tuan Anh Pham,
please find the OpenProject Slack Plugin and its documentation here: https://github.com/opf/openproject-slack#openproject-slack-plugin
You can also look at Slack's website for information: https://api.slack.com/messaging/webhooks
Please note that the Slack plugin is not officially supported.
Kind regards
Matthias
Just stumble this issue recently, and then I found this thread, don't know it's still on open question or not after 2 years, but I have open the source code then I found the setting is on
Administration
->Email and notification
->Aggregation
It's affected email notification and event notification, set to 0 if you want to send the notification imeediately after make changes or add some number if you want to delay the webhook call