Questions tagged [slack]

Slack is a proprietary cloud-based team collaboration tool.

Slack is a proprietary cloud-based team collaboration tool.

https://slack.com/

2474 questions
44
votes
2 answers

How do I make a slack bot leave a channel?

Bots cannot use the regular channels.leave API call, so how do I make a bot leave a channel, short of kicking it? I need it to leave a channel where I do not have rights to kick users.
talloaktrees
  • 2,978
  • 5
  • 23
  • 41
44
votes
8 answers

Slack webhook html table

I have a HTML table that I am trying to post to Slack via webhook. Is there a way to post the HTML table to Slack? Here is the HTML code: HTML Tables
Punter Vicky
  • 12,516
  • 39
  • 134
  • 241
44
votes
1 answer

Is it possible to post files to Slack using the incoming Webhook?

I am trying out the Slack's API using the incoming webhook feature, posting messages works flawlessly, but it doesn't seem to allow any file attachments. Looking through I understand I have to use a completely different OAuth based API, but creating…
Saifis
  • 1,981
  • 1
  • 19
  • 35
36
votes
3 answers

How to send Slack notification after Jenkins pipeline build failed?

I have a pipeline groovy script in Jenkins v2.19. Also I have a "Slack Notification Plugin" v2.0.1 and "Groovy Postbuild Plugin". I have successfully send a message "build started" and "build finished" (if it had). When some build step failed – how…
kivagant
  • 1,368
  • 1
  • 18
  • 27
35
votes
4 answers

Slack: is there a way to disable all @channel notifications

The Slack chat tool by default sends email notifications saying "You were mentioned ..." when in fact it was @channel and not you. The only way I can find to turn these off is to go into each channel setting.
Dave Crooke
  • 600
  • 1
  • 5
  • 10
29
votes
3 answers

How to avoid slack command timeout error?

I am working with slack command (python code is running behind this), it works fine, but this gives error This slash command experienced a problem: 'Timeout was reached' (error detail provided only to team owning command). How to avoid this ?
Vikas Saini
  • 914
  • 3
  • 9
  • 22
28
votes
2 answers

How to edit the link in a slack notification from Grafana

We are using Grafana 4 and have implemented alert notifications to a slack channel through an Incoming Webhook. The notifications are sent as and wen expected, except that the link in the notification points to the wrong place. For instance, if you…
quiram
  • 537
  • 1
  • 6
  • 16
27
votes
2 answers

How do I send "@here" with the Slack API?

I know I can tag a user with <@U423DFDE|username> but I can't figure out how to tag @here
benwiz
  • 1,567
  • 17
  • 28
26
votes
2 answers

Groovy: Method definition not expected here

I'm sure this is a simple fix but I'm new to programming in general and Groovy in particular. I am trying to follow this guide to enable slack notifications in a Jenkins 2 pipeline job but pasting and customizing the final code block is giving me…
Alex
  • 1,865
  • 5
  • 21
  • 40
26
votes
1 answer

Slack Attachment Width and Wrapping Issues

I'm trying to use slack attachments to log application errors but the large fields like the stack trace are behaving weirdly. First, when using attachments the table seems to be fixed to some arbitrary width, is there anyway to change this so a…
Wrightboy
  • 766
  • 10
  • 23
25
votes
1 answer

Embed html in slack posts

I have a html message like this: