How to exclude slack notification about comments in JIRA from our own agent

Yaroslav Panchenko
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 19, 2024

Hi, I would like to exclude Slack notifications coming into the channel, when someone from my team comments something in JIRA. I've tried the following:

  • lastCommentBy NOT IN
  • commentedBy NOT IN

Are there other ways to approach it, not to get extra notifications from the JIRA Application in Slack integration?

2 answers

1 accepted

0 votes
Answer accepted
Humashankar VJ
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 21, 2024

Hi @Yaroslav Panchenko 

Can you give it a try and see if this work for you - Create Rule by Set the trigger to "Issue Commented" to initiate the rule when a comment is added.

Next, add a condition to exclude comments from your team members. Use the User Condition or Advanced Compare Condition with a JQL query, such as "comment.author != 'username1' AND comment.author != 'username2'", replacing the usernames with those of your team members.

Then, add an action to send a Slack notification. Select New Action -> Send Slack message and configure the message to be sent to the desired channel.

Take some learning from the below post in the community which was discussed on these lines:

Slack notifications/integration for restricted com... (atlassian.com)

 

Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards

Yaroslav Panchenko
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 22, 2024

Hey, thanks for your answer, but unfortunately I assume our workspace doesn't have "comment.author" option, and when I'm trying to save this setting in JQL, it says: 

Invalid JQL

Could not save project connection settings

Like Humashankar VJ likes this
Humashankar VJ
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 22, 2024

Hi @Yaroslav Panchenko 

The comment.author field may not be available in the JQL for your Jira workspace, which can happen depending on your Jira setup or plan (Data Center / Jira Server and not Jira on Cloud).

For other options, am just trying to solve this with lastComment field in combination with user mentions to filter notifications, let me try to reach closer and will keep you posted.

Like Yaroslav Panchenko likes this
0 votes
Humashankar VJ
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 8, 2024

Hi @Yaroslav Panchenko 

Can you give a try with the below and see it that helps to solve the issue:

text

issue.comment.author = xxxx

or for exclusion:

text

issue.comment.author NOT IN (user1, user2, ...)

 

text

issue.comment.author NOT IN membersOf("Your Team Group")

 

Regards

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events