Using field configuration to make a field required will make the field required all the time. There are many use cases where you will only need the field to be required during certain workflow transitions.
For this recipe, we need to have the JIRA Suite Utilities add-on installed. You can download it from the following link, or install it directly using the Universal Plugin Manager:
https://marketplace.atlassian.com/plugins/com.googlecode.jira-suite-utilities
Perform the following steps to make the Reason for Freezing field required during the Frozen transition:
After you have added the validator, if you try to execute the Frozen transition without specifying a value for the Reason for Freezing field, JIRA will prompt you with an error message, as shown in the following screenshot: