# Run Script on Listener only in transition event

**URL:** <https://forum.library.adaptavist.com/t/run-script-on-listener-only-in-transition-event/161>\
**Category:** ScriptRunner\
**Tags:** cloud, jira, listener\
**Created:** [June 7, 2022, 5:46pm UTC](https://forum.library.adaptavist.com/t/run-script-on-listener-only-in-transition-event/161 "2022-06-07T17:46:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanAlonso14](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.library.adaptavist.com/danalonso14/32/108_2.png) [@DanAlonso14](https://forum.library.adaptavist.com/u/DanAlonso14)\
**Post date:** [June 7, 2022, 5:46pm UTC](https://forum.library.adaptavist.com/t/run-script-on-listener-only-in-transition-event/161/1 "2022-06-07T17:46:20Z")

</div>

How can I catch a transition with Script Listeners?  
In the listeners I just found ‘Issue Created’ and ‘Issue Updated’, I’m guessing that the Event I need is ‘Issue Updated’, but this event can be triggered when the user updates a field, transition, or change the assignee, etc.  
My question here is if there’s a way to filter all Update events but ‘Transition’.

---

<div class="post-metadata">

**Author:** ![imadero](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.library.adaptavist.com/imadero/32/59_2.png) [@imadero](https://forum.library.adaptavist.com/u/imadero)\
**Post date:** [June 13, 2022, 5:52am UTC](https://forum.library.adaptavist.com/t/run-script-on-listener-only-in-transition-event/161/2 "2022-06-13T05:52:09Z")

</div>

Hi @DanAlonso14 , probably you will need to use the changelog object, that is inside the event, as you can see [here](https://library.adaptavist.com/entity/change-epic-status-field-when-resolution-gets-set), you can find in the changelog list by field name, in your case you will need to use the state field.

Thanks, Ivan.
