This is a brief tutorial which teaches you how to write a trivial event listener plugin.The FishEye Twitter Integration Plugin Tutorial contains an event listener plugin module as part of a more complex plugin.
We encourage you to work through this tutorial. If you want to skip ahead or check your work when you are done, you can find the plugin source code on Atlassian Bitbucket. Bitbucket serves a public Git repository containing the tutorial's code. To clone the repository, issue the following command:
Alternatively, you can download the source using the Downloads page here: https://bitbucket.org/atlassian_tutorial/fecru-review-creator
Work through the Tutorial
Your implementation is added to
getHandledEventClasses method must return an array of the event classes you wish to be notified of, in our example, comment creation and update events. (here are other event types)
When a commit occurs our
handleEvent method will be called: