I am trying to get scriptrunner to do a logical if/esle off the current status of the issue. The reason behind this is I need a field to be mandatory after a certain workflow to be located on the edit screen not be mandatory but to be editable during the workaction. I also in the same script if the value of another field is selected it will make fields read only.
All I really need understand is what is the process for identifying the current status (Workflow ID) the issue is in and how to base a logical comparison to it.