Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Scriptrunner Slack Listener not posting message

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 13, 2020

Hello,

Using the script from the Adaptavist library I've managed to get slack notifications working from a listener. The issue I'm seeing is that only the attachments are being passed from the JSON to the notification. It seems to ignore anything I pass as "text". I think I'm likely missing something fairly basic here.

The original code is here.

Here is the output into slack:

Screen Shot 2020-10-13 at 9.45.01 AM.png

It seems that only thing being passed is the "attachment" section of the JSON payload.
Help would be appreciated in better understanding if additional permission is needed within slack, or something needs to be changed in the base code of the script to display this information correctly.

Regards,
Steven

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.5.1
TAGS
AUG Leaders

Atlassian Community Events