Requirement: This will be applicable for all the issues of a given project. There is a customfield Promised Delivery Date in the form. Based on the priority of an issue, this field has to be enabled/disabled for the user.
When the priority = Critical, the customfield has to be disabled. Otherwise it will remain enabled. Hence I wanted a groovy script to fetch the current issue's priority. I have done with the enable/disable part.