This event handler adds a comment to a tracker item whenever an association is added to or deleted from this tracker item.
The code for example one can be found here.
This example event handler is provided as-is (i.e. not supported as part of any TeamForge release). As with all event handlers, use it at your own risk. CollabNet cannot guarantee any SLAs on third-party code.
<event api="6.1" mode="asynchronous"> <type>relationship</type> <operation>*</operation> <handler>com.vasoftware.sf.plugin.AsynchronousRelationshipEventListener</handler> </event>This tells the event handling framework that the class AsynchronousRelationshipEventListener is responsible for intercepting events of type “relationship” (aka associations) for every possible operation. The handler will be called after the event has happened (asynchronous mode) and the passed data structures will be compatible with the events format defined in TeamForge 6.0 (in other words, the event handler extends the EventHandler60 class). If you only want to intercept certain operations, you can specify those instead of the wildcard character (*). Supported operations are usually create, update, move and delete, but every event can define its own operations.
<event api="6.1" mode="synchronous"> <type>*</type> <operation>*</operation> <handler>com.vasoftware.sf.plugin.AsynchronousRelationshipEventListener</handler> <user>foo</user> </event>