V
V
VolodymyrWork2021-08-12 09:48:09
JSON
VolodymyrWork, 2021-08-12 09:48:09

How to make a message in Slack a list?

I'm sending a message to a Slack channel and I need it to be in the form of a list, i.e. the lines should be on top of each other. Now, if there are few characters in the line, then two lines are transferred to one level. Can I somehow configure so that each line takes up the entire space and the next one is under it. Now I did it through context, I also tried it through section, but if I do it through section, all the text is divided into two columns, and I need it into one column.
This is what the message looks like now

{
  "blocks": [
    {
      "type": "header",
      "text": {
        "type": "plain_text",
        "text": "Test",
        "emoji": true
      }
    },
    {
      "type": "context",
      "elements": [
        {
          "type": "mrkdwn",
          "text": "*#1 Test*"
        },
        {
          "type": "mrkdwn",
          "text": "*#2 Test*"
        },
        {
          "type": "mrkdwn",
          "text": "*#3 Test*"
        },
        {
          "type": "mrkdwn",
          "text": "*#4 Test*"
        },
        {
          "type": "mrkdwn",
          "text": "*#5 Test*"
        }
      ]
    }
  ]
}

The screenshot shows what it looks like now.
6114c3d8a39d6353774548.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zohan1993, 2021-08-12
@VolodymyrWork

perhaps arrange such an option

{
  "blocks": [
    {
      "type": "section",
      "text": {
        "type": "mrkdwn",
        "text": "1\n2\n3"
      }
    },
    {
      "type": "context",
      "elements": [
        {
          "type": "mrkdwn",
          "text": "1\n2\n3"
        }
      ]
    }
  ]
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question