How can I remove the built in notification content on post-function Slack notifications?
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)
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.