Forums

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

Slack + JIRA - Sending notification on SLACK different channels with single JIRA rule

Roy Mishal August 2, 2021

Hi Guys 

I'll appreciate your help with this one,

Is there is any way to receive JIRA notification about new created issues on new created SLACK channels by using a single automation rule?

(From jira - Maybe by labeling the issue with the name of the channel (usually the same name of the feature) and by that initiating notification to the channel

The idea is that we creating new SLACK channel for each feature we starting to work on, and we want to get notifications about issues that the tester coming across it (by opening issues) without creating new rule per channel

Thank you!! 

1 answer

1 accepted

1 vote
Answer accepted
Gaurav
Community Champion
August 2, 2021

Hello @Roy Mishal 

Welcome to the Atlassian community!!

This use-case is possible using an if-else construct in a single automation rule. Please find attached the screenshot which depicts this.

The components are being used to differentiate the channels. This can be customized as per your requirements. Kindly let me know if you need help with this.

Please accept the answer if this helps solve your query else respond and allow others to share input.

Slack Automation.JPG

Roy Mishal August 2, 2021

Thank you - but the issue is that by creating single rule with the need to edit again (I assume JIRA is familiars with all created SLACK channels without the need to update anything) and from there whenever the tester is creating new issue (lets say the issue's label = channel name) the notification will be directed to that specific channel - sounds reasonable? I'll appreciate an example if you understand my need:) (Im kind of new with JIRA automation) (I also assume if_include function in this case will be the best), Much appreciated 

Gaurav
Community Champion
August 2, 2021

Hello @Roy Mishal 

I do not have an example readily available to share with you at this point. I have implemented it previously, and when we mention the specific channel in the automation, it will be posted to the exact channel.

Kindly refer to the Atlassian documentation related to this, here.

Please accept the answer if this helps solve your query else respond and allow others to share input.

Roy Mishal August 2, 2021

Sure that perfectly fine, Let's say that after that I'm creating a new channel on SLACK and I want new created issues to reach there, should I create a new JIRA rule mentioning the new SLACK channel? (I want to make a state that specific issues will be notified specific channels without handling JIRA automation rule)

Gaurav
Community Champion
August 2, 2021

Hello @Roy Mishal 

In case a new SLACK channel has been created, you can accommodate it by editing the existing rule or by creating a new rule.

Alternatively, you can even create a custom field in Jira where the user mentions the channel name and then you can use that directly in the automation. This way, you will not need to create or edit automation when a new channel is created.

Kindly refer to the Atlassian documentation related to this, here.

Please accept the answer if this helps solve your query else respond and allow others to share input.

Suggest an answer

Log in or Sign up to answer