Forums

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

Slack notification customization - remove canned content

Steven Mustari
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 20, 2020

How can I remove the built in notification content on post-function Slack notifications?

Screen Shot 2020-10-20 at 4.19.09 PM.png

 

I could write this as a listener, but I was hoping to be able to modify this somehow as there is content that is not relevant to one of our projects (Priority)

1 answer

1 accepted

2 votes
Answer accepted
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 20, 2020

Hi Steven,

The default message isn't configurable in the integration as-is right now. Any message you put in the field (including variables) will appear above the two default lines you see in the screenshot.

The integration is open source however: https://github.com/atlassian-labs/atlassian-slack-integration-server

It would be possible to modify the default message and install your own local copy of the connector. The default message is defined in this file:
https://github.com/atlassian-labs/atlassian-slack-integration-server/blob/9559d628093a1448cde70615ac8ac634890697e4/jira-slack-server-integration/jira-slack-server-integration-plugin/src/main/java/com/atlassian/jira/plugins/slack/service/notification/impl/DefaultAttachmentHelper.java

An extension of that of course would be making the default message configurable, or even just optional altogether. While you're free to modify the code for your local needs, bigger changes that could benefit everyone would be great candidates for making a pull request into the main repository. This also helps you by getting your changes into the main app published on the Marketplace so that you can easily update it through the plugin manager. Information on contributing is available at the top of the repository.

Cheers,
Daniel

Suggest an answer

Log in or Sign up to answer