Zammad to Slack as Notification via Webhook and Trigger

Infos:

  • Used Zammad version: 5.2.4
  • Used Zammad installation type: (source, package, docker-compose, …)
  • Operating system: Ubuntu 20.04
  • Browser + version: Firefox lastest

Expected behavior:

  • A defined trigger shall send a notification to a specific Slack Channel via a Webhook

Actual behavior:

  • Status 400: missing_text_or_fallback_or_attachments

In Detail:
I configured the Slack Integration as described with the “Incoming Webhoob” in Slack.
That works just fine.
But I only want to inform that channel in specific events I configured as Triggers.
But within Triggers I can’t use this Slack integration as a form of notification.

So I try to use Webhooks within Zammad.
The Endpoint is set, HMAC-SHA1 is blank, SSL is active.

I see that Zammad tries to fire the message to Slack but I get a Code 400 response:

“date: Tue, 08 Nov 2022 08:41:07 GMT\nserver: Apache\nx-powered-by: HHVM/4.153.1\nx-frame-options: SAMEORIGIN\naccess-control-allow-origin: *\nreferrer-policy: no-referrer\nx-slack-backend: r\nx-slack-unique-id: Y2oWIyXHtiySmK4jrR6HrQAAIAo\nstrict-transport-security: max-age=31536000; includeSubDomains; preload\nvary: Accept-Encoding\ncontent-type: text/html\nx-envoy-upstream-service-time: 108\nx-backend: main_normal main_bedrock_normal_with_overflow main_canary_with_overflow main_bedrock_canary_with_overflow main_control_with_overflow main_bedrock_control_with_overflow\nx-server: slack-www-hhvm-main-iad-awee\nx-slack-shared-secret-outcome: no-match\nvia: envoy-www-iad-jgin, envoy-edge-fra-7tqd\nx-edge-backend: envoy-www\nx-slack-edge-shared-secret-outcome: no-match\nconnection: close\ntransfer-encoding: chunked\n\nmissing_text_or_fallback_or_attachments”

I looks to me that the payload is missing.

I see the example payload but I don’t where to set it and don’t see it described in the admin-docs.

Can anyone provide some help?

Thank you in advance!

Update on that topic:

I am conviced that the described example payload is fired to slack whereas slack requires a different form of payload from what I read from their docs.

So I ask myself and this community: Is there a way to customize the payload (per Webhook) ?

Thanks again!

Zammad does not support what you’re trying to do with the slack integration.
The webhook functionality cannot be used to fire directly against Slack, obviously they don’t like our Zammad specific payload.

You’d need a middle ware if you want to use the webhooks for Slack.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.