# How to call an alert in another?

**URL:** <https://discuss.elastic.co/t/how-to-call-an-alert-in-another/252910>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring, elastic-stack-alerting\
**Created:** [October 21, 2020, 10:52pm UTC](https://discuss.elastic.co/t/how-to-call-an-alert-in-another/252910 "2020-10-21T22:52:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juan\_David\_Jaramillo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/juan_david_jaramillo/32/76831_2.png) [@Juan\_David\_Jaramillo](https://discuss.elastic.co/u/Juan_David_Jaramillo)\
**Post date:** [October 21, 2020, 10:52pm UTC](https://discuss.elastic.co/t/how-to-call-an-alert-in-another/252910/1 "2020-10-21T22:52:23Z")

</div>

**How can I do to call a watch in another, so I had it in my code but it does not serve me need to call an alert to this, to make a condition that if you run that make an action in this. I am confused about this because there is very little information about the alerts.**

```auto
{
  "trigger": {
    "schedule": {
      "interval": "24h"
    }
  },
  "input": {
      "chain":{
          "inputs":[
              {
                  "first":{
                      "watch_id": "iGCYyGCcTPKAXtFYnqXWJA_elasticsearch_cluster_status",
                      "state" : "executed"
                  },
                  "second":{
                      "transform" : {
            "script" : "return ['watch_id' : ctx.payload.first.watch_id]"
                  }
                  }
              }
              ]
      },

```

---

<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:** [November 18, 2020, 10:52pm UTC](https://discuss.elastic.co/t/how-to-call-an-alert-in-another/252910/2 "2020-11-18T22:52:25Z")

</div>

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