Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to react with script listener only when specific value / field changes?

Deleted user January 30, 2019

Hello, we run a script listener which sets the value of a specific field "Result" based on the values of a cascading field "Input".

Our problem now is, that this script runs every time and in some minimal cases the routing is wrong so an agent needs to set the value in "Result" manually to another value. But when he applies his choice the script listener changes his edit back to what the usual value "should" be.

Is it possible to run the listener only when values in specific field "Input" changed? So u can edit all other fields including "Result" manually and the listener doesn't run?

1 answer

1 accepted

0 votes
Answer accepted
Marc Minten (EVS)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 30, 2019

In event.getChangeLog() you find all the info about what field(s) changed, what was/where old value(s) and what is/are new value(s)...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events