Questions tagged [slack-block-kit]

Block Kit is a UI framework for Slack apps that offers a balance of control and flexibility when building experiences in messages and other surfaces. Customize the order and appearance of information and guide users through your app's capabilities by composing, updating, sequencing, and stacking blocks — reusable components that work almost everywhere in Slack.

172 questions
1
vote
0 answers

Is there a way to get a trigger_id with an emoji reaction with the Slack API?

I'm attempting to trigger a Modal View using Bolt by listening for the reaction_added event. Something like @app.event("reaction_added") def react(event): # return a modal view based on emoji reaction added but the response on a reaction_added…
Paul
  • 1,101
  • 1
  • 11
  • 20
1
vote
0 answers

how to format Slack message with several files

Can somebody please advise on how to send a message to a channel with several files attached? I successfully uploaded files to slack, but having issues formatting my message. I tried markdown message with but…
Philipp Grigoryev
  • 1,985
  • 3
  • 17
  • 23
1
vote
1 answer

Subscribing an User to a Thread using the Slack API

This is the first question I ask in quite a few years :-) I've gotten to play around with the Slack API recently to write up some notification bot. As part of the bot workflow, I want it to send messages to a channel, where it will create a thread…
Alxe
  • 381
  • 3
  • 12
1
vote
0 answers

Github Actions + Slack API invalid_blocks

The following configuration (indented for readability) returns the invalid_blocks error. However, it works in the Block Kit Builder. - name: Notify run: >- curl -X POST "${{ secrets.WEBHOOK }}" -H "Content-Type: application/json" --data …
1
vote
1 answer

Slack block ui kit - Having two static selects in one row with slack modals

If you check the Google's calendar slack app, it seems that the selected block elements are rendered differently from the ones we can get from the block UI kit. Google's calendar slack app Slack Block UI Kit As you see in the screenshots, the only…
1
vote
1 answer

Is it possible to have multiple external select menus that contain different data in slack-api?

I am trying to add multiple select menus that contain different external data in both menus. But it seems you can only add one endpoint to 'Options load URL' under 'Select Menus'. Is it possible to add multiple external select menus? I have been…
Sean O'Connor
  • 168
  • 1
  • 11
1
vote
1 answer

How can I send message to specific Slack channel through Selenium (Java) script if my script is running on BrowserStack through Jenkins

How can I send message to specific Slack channel through Selenium script Working on slack notification from last few days. I'm trying to receive a message on slack which I have entered in my selenium java script. Story: Whenever a script runs then…
Dhanesh
  • 63
  • 1
  • 13
1
vote
1 answer

How do I make a hyperlink in Slack Block Kit mrkdwn (markdown) block?

How can I make a link in a slack markdown block in Slack Block Kit? I've tried what I'm used to using for markdown: This is a [link](https://www.stackoverflow.com) But that isn't working.
cmcculloh
  • 47,596
  • 40
  • 105
  • 130
1
vote
0 answers

Can't send running ec2 instance list from lambda to slack using webhook url

I have a lambda function which filters out running ec2 instances and stores them in an array, then it is sent as a payload to the slack channel. The problem is when I run the function it will not send the list but the print command will list it out…
Usama Malick
  • 31
  • 1
  • 6
1
vote
0 answers

slack block users-select dropdown limited options by group users or static id's

I'm using slack users-select in the block-kit and would like to restrict my users-list in the dropdown options (currently shows all users in workspace) with given id's OR to specific users in current-group: "restricted_users": ["Id1",…
a.k
  • 1,035
  • 10
  • 27
1
vote
1 answer

How to make my slackbot reply in a thread, instead of to entire channel in Slack

I am doing slack to ServiceNow integration which is working fine. I am trying to reply to a thread instead of posting a message to a channel. Currently i am using https://slack.com/api/chat.postMessage which is reply to a channel but not to a…
1
vote
0 answers

Google Sheets to Slack fails to update the same block

I am trying to figure out how to update the same block in slack when a user interacts with a button. Currently I am able to create a new block message in Slack after user interacts with the button, but I want to update the original message. This is…
1
vote
1 answer

How to have a standard block kit interactive component look like a modal input

I'm building a modal that has several select inputs on it. The values entered get posted to my server when the user clicks the modal submit button. However, for one of the selects I need it to post to the server immediately when the user interacts…
overture8
  • 109
  • 2
  • 7
0
votes
1 answer

How to populate my checkbox in my view.js from an array in my controller.js? (Block Kit Slack)

How do I populate this checkbox with the data from an array in my controller? My-view.js My array in controller arr = ["option 1", "option 2", "option 3", "option 4", "option 5"] Checkbox options should be option 1, option 2, [...]
0
votes
0 answers

slack api deprecated attachments, now how to add a color to messages or inner contents or inner sections?

Attachments are now part of api deprecations of Slack build kit https://api.slack.com/reference/messaging/attachments We need to add a colored bar (red for critical, orange for warning, green for success, azure for info) but we cannot find a way…
realtebo
  • 23,922
  • 37
  • 112
  • 189