Affects Version/s: 5.8.0-p5
Fix Version/s: 6.2.0
Sprint:SR4J Sprint 78
It's possible to set up an infinite loop, but using two selects, each that set the value of the other (to eg None).
This only happens with select2 fields, for example, standard single selects (but only using the service desk view), or possibly say fixVersions and components system fields.
Add two single select list fields, it doesn't matter what options they have.
Add this behaviour on the first:
Add a similar behaviour on the second, with the fields inverted. The idea is setting either to None will set the other to None.
This will cause each field to continually set the value of the other.
The problem happens because with select2 fields we have to clear out the options then add them back, so an event is fired on the field even though it has not changed.
Only set the field to None if it's not already None. This can be done by uncommenting the lines in the example above.