Performing additional processing after a transition is executed
JIRA allows you to perform additional tasks as part of a workflow transition through the use of post functions. JIRA makes heavy use of post functions internally, for example, in the case of an out-of-the-box workflow, the resolution field value is cleared automatically when you reopen an issue.
In this recipe, we will look at how to add post functions to a workflow transition. We will add a post function to automatically clear out the value stored in the Reason for Freezing custom field when we take it out of the Frozen status.
Getting ready
By default, JIRA comes with a post function that can change the values for standard issue fields, but since Reason for Freezing is a custom field, 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