Create an Ad-Hoc Template for "Notification Scheme Entity count exceeded" Notifications

Process

In order to notify the project lead, an AdHoc Template needs to be created in JEMH, its a TemplateSet category (requires JEMH 14.17+).  Then, editing the Event Listener screen, all Ad-Hoc Templates will be listed in the global configuration (it is not a per-mapping configuration).

The notifications are only sent when the limit is greater than 0 and the limit has been exceeded by a particular scheme entity

Generic context variables

The generic context is listed at the top of the JEMH TemplateSet screen.

Transient context variables

JEMH populates the context for the ad hoc template with the generic context for all email notifications, in addition:

variable

type

variable

type

maxNotificationSchemeEntityAction

String

issueEvent

com.atlassian.jira.event.issue.IssueEvent

issue

com.atlassian.jira.issue.Issue

maxLimit

int

schemeEntity

com.atlassian.jira.scheme.SchemeEntity

 

Common usages of the above in a blank ad-hoc template would be:

$issueEvent.getProject().getKey() $notificationSchemeEntity.getSchemeId()

From the generic context there are:

$actionUser.getName()

 

Example AdHocTemplate

Subject
$issueEvent.getProject().getKey() Project notifications exceeded limit of $maxLimit

 

HTML

 

Text

Related articles