# Slack Attachment Actions

**URL:** <https://discuss.elastic.co/t/slack-attachment-actions/111978>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [December 15, 2017, 12:09pm UTC](https://discuss.elastic.co/t/slack-attachment-actions/111978 "2017-12-15T12:09:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesspi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jamesspi/32/24479_2.png) [@jamesspi](https://discuss.elastic.co/u/jamesspi)\
**Post date:** [December 15, 2017, 12:09pm UTC](https://discuss.elastic.co/t/slack-attachment-actions/111978/1 "2017-12-15T12:09:40Z")

</div>

Hi!

I'd like to use actions within Slack attachments (buttons etc). This works fine in the slack message builder, but watcher doesn't seem to like the syntax:

```
      "attachments": [
        {
          "color": "danger",
          "title": "XXXXXXXXXX",
          "title_link": "xxxxxxxxxxxf",
          "text": "xxxxxxxxxxxxx.",
           "actions": 
            {
              "type": "button",
              "name": "ack",
              "text": "Acknowledge",
              "url": "xxxxxxxxxxxxxx",
              "style": "primary"
            },
            "fields": [
            {
              "title": "xxxxxxxxxx",
              "value": "xxxxxxxxxxxx",
              "short": true
            },
            {
              "title": "xxxxxxx",
              "value": "xxxxxxxxxxx",
              "short": true
            }
          ]
        }
      ]

```

Everything else (fields, title etc) works.

message in Kibana:

Watcher: [parse\_exception] could not parse message attachment field. unexpected field [actions]

Running 6.1.0 for all stack elements.

Thanks,  
James

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 18, 2017, 2:08pm UTC](https://discuss.elastic.co/t/slack-attachment-actions/111978/2 "2017-12-18T14:08:32Z")

</div>

Hey,

you are right, this is currently not possible. I'll take a look what needs to be done to support this.

--Alex

---

<div class="post-metadata">

**Author:** ![jamesspi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jamesspi/32/24479_2.png) [@jamesspi](https://discuss.elastic.co/u/jamesspi)\
**Post date:** [December 18, 2017, 2:40pm UTC](https://discuss.elastic.co/t/slack-attachment-actions/111978/3 "2017-12-18T14:40:04Z")

</div>

Great, thanks @spinscale!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 15, 2018, 2:40pm UTC](https://discuss.elastic.co/t/slack-attachment-actions/111978/4 "2018-01-15T14:40:22Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
