Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

General discussion
  1. OpenProject
  2. Forums
  3. General discussion
  4. Using webhooks with Slack

Using webhooks with Slack

Added by Mario Roman over 6 years ago

Hi all, is it possible to use Open Project webhooks with slack to be notified every time that an issue is created/updated?

I've tried to integrate it but it din't work for me.

Thanks,

M.


Replies (10)

RE: Using webhooks with Slack - Added by Phason Electronics over 6 years ago

I would be interested in this as well.

Chris

RE: Using webhooks with Slack - Added by Oliver Günther over 6 years ago

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

RE: Using webhooks with Slack - Added by Xavier Raj over 5 years ago

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

RE: Using webhooks with Slack - Added by Oliver Günther over 5 years ago

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

RE: Using webhooks with Slack - Added by Xavier Raj over 5 years ago

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

RE: Using webhooks with Slack - Added by Szymon Seget almost 5 years ago

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

RE: Using webhooks with Slack - Added by Tuan Anh Pham over 4 years ago

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?

RE: Using webhooks with Slack - Added by Mateo Duffour over 4 years ago

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 ?

RE: Using webhooks with Slack - Added by Max Mutzge over 4 years ago

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

RE: RE: Using webhooks with Slack - Added by Adhitya Nugraha about 2 years ago

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

  • (1 - 10/10)
Loading...