Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira Automation is Spamming Our Slack Channel

Ran Craycraft July 15, 2021

I set up an automation to send a Slack message when there's a successful Deploy on CircleCI. It's running when expected, but instead of sending the message once, it's spamming our Slack channel depending on how many JIRA issues were in that deploy.

So if there were 9 issues successfully deployed, it's sending the message 18 times in Slack. Any tips on how to just get a single message when deploy succeeds?

 

Screen Shot 2021-07-15 at 1.02.56 PM.pngScreen Shot 2021-07-15 at 1.03.24 PM.png

1 answer

0 votes
Joy Chiu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 15, 2021

@Ran Craycraft Can you double-check how many issues are included in one deployment? The slack message is sent per issue rather than per deployment. Take an example, if the deployment includes 3 issues, you will receive 3 messages.

Ran Craycraft July 15, 2021

Thanks for the note, @Joy Chiu . Ok, we can probably work around that. I changed the message, but it's definitely doubling up posts to Slack.

Here's what I mean: Screen Shot 2021-07-15 at 10.14.16 PM.png 

Ran Craycraft July 16, 2021

@Joy Chiu I can confirm it's doubling up the number of issues broadcast to Slack. We suspect it's because:

We are currently sending events to Jira from CircleCI.
As we are deploying components to two platforms in each environment (Firebase & Kubernetes), the Jira automation is triggered at the end of a successful update on each platform causing 2x as many notifications in Slack.

Any tips?

Joy Chiu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 18, 2021

@Ran Craycraft  It depends on how many times CircleCI sends events to Jira. I'd think Jira receives the event twice, so the message is sent twice.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events