Jira Automation not sending Slack messages to a user or channel

Dave Beaudoin February 12, 2024

I have Jira Automation setup to send a notice to Slack whenever someone changes a label on a ticket. I'd like that to send to a specific user but I cannot get that to work. I have the Slack webhook setup in a channel and can get the message to post to that channel but the override to send to either another channel or user does not work. I've tried @memberID, another variable as well as a public channel. FWIW that field also doesn't pre-populate as it does in one of the videos I've watched regarding setting up Slack/Jira messaging. Any thoughts?

1 answer

1 accepted

0 votes
Answer accepted
Mohanraj Thangamuthu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 12, 2024
Dave Beaudoin February 13, 2024

Thank you for the article however I do have this setup and have run the script successfully. I can reference an @{{issue.reporter.properties.metadata.slack_id}} within the Slack message as it posts to the channel the webhook is setup in,  however I cannot use the Channel or User box to send directly to a user or channel and override the webhooked channel. 

Dave Beaudoin February 13, 2024

Interestingly enough if I use the legacy webhook setup in Slack, I'm able to get this to work. The new method of creating a Slack app in the Slack API doesn't seem to work, unless I'm missing something in there. I've done the OAuth and scopes as shown.

Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 13, 2024

Hi @Dave Beaudoin ,

Just validating your experience here. The channel/user override in the Automation for Jira configuration does require use of the Legacy Slack Webhook app. Using a webhook URL from a new custom Slack App won't work in A4J - it will lock messages to whatever channel that webhook was configured for in the app.

Like # people like this
Dave Beaudoin February 13, 2024

Ahhhh OK that's good to know Daniel, thanks for that answer. I was pulling my hair out trying to figure out what was wrong. We'll use it this way and hopefully Slack continues to support the legacy workflows.

Dor Apelbaum February 28, 2024

Hi @Daniel Eads

Is there a way to do this without using the legacy app?

Karishma Walia April 29, 2024

Hi @Dave Beaudoin ,

I am facing the same issue. However, I am unable to fix it. How do I use Legacy Slack Webhook app instead of using the webhook URL.

Can you please help.

Dave Beaudoin April 30, 2024

@Karishma Walia if you go to File > Settings & Administration > Manage Apps then go to Custom Integrations there should be an option to create an Incoming Webhook there. 

Like Karishma Walia likes this
Karishma Walia May 14, 2024

@Dave Beaudoin I created the webhook. However, it is returning only my Slack ID even after running the script successfully (it was able to read all users via the script). What could be the issue

Suggest an answer

Log in or Sign up to answer
Site Admin
AUG Leaders

Atlassian Community Events