Attribute Customization : Script based condition : State change of a workitem is not recognized dynamically by the script.
Hello All,
We have a use case where in, a field should be mandatory based on 2 conditions(based on severity and state). We have implemented a script based condition. script works fine only when severity is considered.
Our issue is with the State of the workitem.
Script is not recognizing the state change dynamically. it is considering the last saved state.
(for e.g: In Progress --> Closed, the script still considers the previous state - In Progress, though we have changed to Closed.) we need to trigger the script on closed state.
Why is state not getting recognized dynamically, script is still fetching the last saved state ?
Kindly assist on this.
Thanks