* NOTE*: This is for JIRA core, not cloud
Hi team,
I have 3 fields here: Approval Status, IfChoosen and Any Error.
I want to hide Any Error field through through Approval Status on create issue screen.
Again I want to hide Any Error through IfChoosen on a particular transition of same issue type.
I am able to do it for one of the scenarios but not for the other time. I mean Approval Status also controls Any Error and IfChoosen also controls Any Error, because the code is same in the description of Approval Status and IfChoosen. System is not able to understand which field is trying to hide Any Error.
Is there any way of creating an isolation, keeping in mind that I'm not going to create any 4th field here.
Here is the code:

Many thanks.