# Watcher: \[parse\_exception\] could not parse action \[slack\_test/actions\]. unknown action type \[create-jira-issue\]

**URL:** <https://discuss.elastic.co/t/watcher-parse-exception-could-not-parse-action-slack-test-actions-unknown-action-type-create-jira-issue/186621>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [June 20, 2019, 7:55am UTC](https://discuss.elastic.co/t/watcher-parse-exception-could-not-parse-action-slack-test-actions-unknown-action-type-create-jira-issue/186621 "2019-06-20T07:55:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manju134](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manju134/32/37791_2.png) [@manju134](https://discuss.elastic.co/u/manju134)\
**Post date:** [June 20, 2019, 7:55am UTC](https://discuss.elastic.co/t/watcher-parse-exception-could-not-parse-action-slack-test-actions-unknown-action-type-create-jira-issue/186621/1 "2019-06-20T07:55:22Z")

</div>

Hi All,

Below is the code for the watcher i created in kibana. watcher name - **slack\_test**

```
{
  "trigger": {
    "schedule": {
      "interval": "10m"
    }
  },
  "input": {
    "http": {
      "request": {
        "scheme": "http",
        "host": "localhost",
        "port": 9200,
        "method": "get",
        "path": "/_cluster/health",
        "params": {},
        "headers": {}
      }
    }
  },
  "condition": {
    "always": {}
  },
  "actions": {
    "logging": {
      "logging": {
        "level": "info",
        "text": "{{ctx}}"
      }
    },
"actions" : {
  "create-jira-issue" : {
    "throttle_period" : "10m",
    "jira" : {
      "account" : "monitoring", 
      "fields" : {
          "project" : {
            "key": "CPM" 
          },
          "issuetype" : {
            "name": "Incident" 
          },
          "summary" : "CPM - EntityCode - DB - EntityName - EXP", 
          "description" : "CPM - EntityCode - DB - EntityName - EXP", 
          "labels" : ["CPM_Test"], 
          "priority" : {
            "name" : "High" 
          }
      }
    }
  }
},   
    "notify-slack": {
      "slack": {
        "account": "team1",
        "message": {
          "from": "Customer Performance Alert",
          "to": [
            "#cpm"
          ],
          "text": "*CRITICAL!!* Submit Report average duration high for *1* customers! ",
          "attachments": [
            {
              "color": "danger",
              "title": "Average duration was above the critical threshold for 1 customers",
              "text": "The following entities showed Submit Report average durations above the critical threshold for the last 60 minutes:\n_Wells Fargo (p0004196squa) 11733 ms_\n_Critical threshold: 10000 ms._"
            }
          ]
        }
      }
    }
  }
}

```

When i save this try to simulate it i am getting the below error message -

**Watcher: [parse\_exception] could not parse action [slack\_test/actions]. unknown action type [create-jira-issue]**

Please help on this.

---

<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:** [June 20, 2019, 10:59am UTC](https://discuss.elastic.co/t/watcher-parse-exception-could-not-parse-action-slack-test-actions-unknown-action-type-create-jira-issue/186621/2 "2019-06-20T10:59:03Z")

</div>

in order to easily spot this kind of things, it would be super helpful if the JSON is indented properly as well on top of formatting.

The issue here seems that you are using two `actions` fields. One with logging, which is not properly closed and then a second `actions` field is put in the json. try removing the latter.

---

<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:** [July 18, 2019, 10:59am UTC](https://discuss.elastic.co/t/watcher-parse-exception-could-not-parse-action-slack-test-actions-unknown-action-type-create-jira-issue/186621/3 "2019-07-18T10:59:13Z")

</div>

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