How to auto update select list custom field value based on cascading custom field value? Edit Screen

Hello Team,

I am trying to update select list field(Domain) value based on the value selected in cascading first value (“Module”) on Edit screen or inline edit of the ‘Module’ field.

Example: ‘Module’ field only available to the user whereas Domain field is read-only, if the user wish to change the ‘Module’ field on Edit Screen or inline Edit should update the Domain field.

I know I can do it using transition Post-function but I really want to do it on the update of the issue. Can any one please provide skeleton for Issue Update listener or Example?

Any help would be appreciated.