In the previous recipe, Sending notifications for issue updates, we looked at how to set up notification schemes by mapping events to notification recipients.
In this recipe, we will expand on that and look at how to create custom events and templates to use for notifications. This has two advantages:
- We can customize the content and the look and feel of the notification email
- We can specify exactly which event will be fired for each workflow transition and set up notification rules accordingly
We will create a new event that will represent a request that has been approved by the management to proceed. This event will be triggered in an approve workflow transition and will have a custom template applied to it.