# Why my script transform failed with "No such property: org for class: Script8"

**URL:** <https://discuss.elastic.co/t/why-my-script-transform-failed-with-no-such-property-org-for-class-script8/32560>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [October 20, 2015, 9:24am UTC](https://discuss.elastic.co/t/why-my-script-transform-failed-with-no-such-property-org-for-class-script8/32560 "2015-10-20T09:24:50Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Enniu\_51](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/enniu_51/32/5310_2.png) [@Enniu\_51](https://discuss.elastic.co/u/Enniu_51)\
**Post date:** [October 22, 2015, 5:54am UTC](https://discuss.elastic.co/t/why-my-script-transform-failed-with-no-such-property-org-for-class-script8/32560/5 "2015-10-22T05:54:05Z")

</div>

Wow, that works!

But I feel strange, because @spinscale gave me such a transform:

```
"transform" : {
        "script" : "time = org.joda.time.format.ISODateTimeFormat.dateTime().withZone(org.joda.time.DateTimeZone.forID(\"Europe/Berlin\")).parseDateTime(ctx.trigger.triggered_time.toString()).toString() ; return [time_as_string : time]"
      } 

```

Why he use `org.joda.time.format.ISODateTimeFormat` there?

relate post:

> [@Is there a way to support different time zone when my email title is “error occurs at {{ctx.trigger.scheduled\_time}}”?](https://discuss.elastic.co/t/is-there-a-way-to-support-different-time-zone-when-my-email-title-is-error-occurs-at-ctx-trigger-scheduled-time/32455/2):
>
> Hey there, you can use the the joda date time formatters to do this. This is just a quick test and it worked, I think you can do this more efficiently. curl -XPUT 'http://localhost:9200/\_watcher/watch/log\_error\_watch' -d '{ "trigger" : { "schedule" : { "interval" : "10s" } }, "input" : { "search" : { "request" : { "indices" : ["logs"], "body" : { "query" : { "match" : { "message": "error" } } } } } }, "action…

---

_[View the full topic](https://discuss.elastic.co/t/why-my-script-transform-failed-with-no-such-property-org-for-class-script8/32560)._
