# Sending context variable values as a parameter to a stored script

**URL:** <https://discuss.elastic.co/t/sending-context-variable-values-as-a-parameter-to-a-stored-script/147977>\
**Category:** Elasticsearch\
**Created:** [September 10, 2018, 3:02pm UTC](https://discuss.elastic.co/t/sending-context-variable-values-as-a-parameter-to-a-stored-script/147977 "2018-09-10T15:02:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Grant\_Murphy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grant_murphy/32/35799_2.png) [@Grant\_Murphy](https://discuss.elastic.co/u/Grant_Murphy)\
**Post date:** [September 11, 2018, 11:46pm UTC](https://discuss.elastic.co/t/sending-context-variable-values-as-a-parameter-to-a-stored-script/147977/2 "2018-09-11T23:46:07Z")

</div>

Hi Juan,

See: [Watcher Hits in Script Params](https://discuss.elastic.co/t/watcher-hits-in-script-params/101533/3) for a discussion around this. Where the comment was that there is no need to pass parameters around, you have full access to the `ctx` field in a script transform anyway.

HTH!

---

_[View the full topic](https://discuss.elastic.co/t/sending-context-variable-values-as-a-parameter-to-a-stored-script/147977)._
