Automation Send Slack Message triggers Webhook, but message won't show up
Asked by DARREN_HENDRICKS:

Hey folks.

I've created an automation that kicks off on a schedule and tries to send a message to a Slack webhook, triggering a Slack Automation Workflow to send a message to a channel.

I've tested that Slack Automation via curl and it works fine to post the message to the channel.

I've tested the Jira Automation, and it works to trigger the Slack Workflow, but the only text that shows up in the channel is whatever text has been defined in the Slack Workflow "send a message to a channel step" and NOT the message from the Jira automation.

To clarify, the Slack Send a message to a channel step has this as the message:

"Test: {message}", where {message} should be the actual message sent by the Jira automation to the webhook. Instead, the channel only receives "Test: ".

So none of the values or information contained within the Jira Automation are landing in Slack, even if I put a really simple plain text message in the Jira Automation like "This is just a test", the only thing that shows up in the channel is "Test: ".

I looked up examples and it doesn't look like any special formatting is required, but I feel like something is missing. Any help would be much appreciated.

Edit Part 2:

It seems like the Jira "Send Message to Slack Channel" just isn't working properly. To simplify I created the following rule:

![Screenshot 2024-08-05 at 4.08.50?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/340100i3B6EC067FEFCB02E/image-dimensions/399x361?v=v2 "Screenshot 2024-08-05 at 4.08.50?PM.png")

That's it. That's the entire rule. At 4:04PM, send a message to *this* webhook with *that* message.

The webhook is hit, a message shows up, but the actual content of the "Send Slack message" step is empty. "This better work" should show up, but nothing does.

Again, if I curl that same webhook and I'm able to properly format the data it shows up just fine.

I suspect this might be because of the change in how Slack handles webhooks. All the examples and documentation I could find on the Slack side have no reference to setting up Data Variables, as can be seen in my other screenshots below. But again, if I format a curl request with that data value and hit the webhook it shows up in channel fine. I'm assuming the "Jira Send Slack message" action format just doesn't match the Slack webhook anymore.

Edit: Attaching some screenshots.

The Jira Rule:

![Screenshot 2024-08-05 at 11.54.53?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/340045i52FE801C4A4ABAC9/image-dimensions/428x540?v=v2 "Screenshot 2024-08-05 at 11.54.53?AM.png")

The Slack "Send a Message to a channel" workflow step configuration:

![Screenshot 2024-08-05 at 11.58.56?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/340049i1BD6342C37481A78/image-dimensions/348x320?v=v2 "Screenshot 2024-08-05 at 11.58.56?AM.png")

The Slack "Start with a webhook" configuration:

![Screenshot 2024-08-05 at 11.58.36?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/340048i50715404E56E7AFE/image-dimensions/371x368?v=v2 "Screenshot 2024-08-05 at 11.58.36?AM.png")

The Slack automation configuration:

![Screenshot 2024-08-05 at 11.57.39?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/340047i04A29EAE58B49FF2/image-dimensions/411x160?v=v2 "Screenshot 2024-08-05 at 11.57.39?AM.png")

The reason I'm confident this is not a Slack side issue:  
![Screenshot 2024-08-05 at 12.02.37?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/340051i4432504D78581087/image-size/large?v=v2&px=999 "Screenshot 2024-08-05 at 12.02.37?PM.png")

When I curl the webhook the message shows up perfectly. It's only when Jira sends the message that it fails to show up, as seen here (the top message is from Jira, lacking the actual "testing" we should see, the bottom message is from my curl request, and correctly shows the "test" content):

![Screenshot 2024-08-05 at 12.03.55?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/340052i8DADF24A4CECDD23/image-size/large?v=v2&px=999 "Screenshot 2024-08-05 at 12.03.55?PM.png")


Answers:
author: DARREN_HENDRICKS
body: PEBCAK.

This was apparently the wrong kind of webhook. The workflow webhook I was trying to use has the format <https://hooks.slack.com/triggers>

The correct incoming webhook format should be (<https://hooks.slack.com/services/>), which is created not through a workflow, by following the link in the Jira Send Slack Message configuration.


author: Lisa Forstberg
body: Hi [@DARREN_HENDRICKS](/t5/user/viewprofilepage/user-id/5560539) ,

Welcome to the community!

It is always good to post some screenshots of your automation and integration setting, it will speed up the help from the community.

Also - have you seen this documentation about [connecting Jira with Slack](https://support.atlassian.com/jira-software-cloud/docs/use-jira-cloud-for-slack/)?

br

Lisa

comments: author: DARREN_HENDRICKS
body: Hey Lisa,

Thanks for the reply. I updated my question with some screenshots that should, I hope, help clarify the problem I'm encountering.

I had previously referred to the documentation you shared but I'm afraid it doesn't seem to address this issue.

Thanks,

Darren


Tags: cloud

cloud-automation

jira-cloud