Sometimes you will want to treat a particular issue event as if it were another. Normally this will be only when certain conditions are met.

Step-by-step guide

Add the steps involved:

  1. Go to JEMH > Event Listener
  2. Create a new configuration mapping or edit an existing one
  3. In the "Event Selector and Filter script" section, enter your script, using Velocity scripting language. Refer to the following page for more information on creating the script: https://thepluginpeople.atlassian.net/wiki/x/VgAwB

 The following example script will treat all events with comments as Issue Commented events, except when the original event has the event type ID 10000:

#if($comment && $issueEvent.getEventTypeId() != 10000)
	$result.setTargetEventId(6)
	$result.setEventBroadcastMethod('useDerivedEventInstead')
	$result.setReason('event with comment should be comment event type')
#end

Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.



Related issues