Page tree
Skip to end of metadata
Go to start of metadata


SLA Notifiers can be configured to notify relevant people before or after the breach. Notifier can be chosen to work with SLAs' working calendar. It also can be enabled to work as a recurring notifier.


  • Name: Give a name to remember your notifier. It is handy when you have loads of SLA Notifiers.
  • Notify before: Time string to fire notification before the SLA target. For instance if you type 4h, notification will be done foru hours before the SLA target date. 
    Also you can use this box to set a notification after the SLA target date. To do so add - (minus) to the very beginning of the time string. For instance -1h means, one hour after the SLA target date
  • Enable working calendarWhen this option is enabled, notification will only be sent in the working hours of the related calendar.
  • Recurrence: Recurrent notifications will be done for every given recurring interval until the completion of SLA. For instance, if recurring interval is defined as 30m and notify before is defined as 2h, then TTS will send first email 2 hours before the deadline, and it will send emails every 30 minutes till SLA becomes completed.
  • Email subject: You can arrange the email subject here dynamically. Dynamic parameters are described below.
  • Email content: You can arrange the email subject here dynamically. Dynamic parameters are described below.



Email subject and body can be fully dynamic, as described in this section


Parameters that can be passed to SLA Notifier  are listed below

ParameterTypeDescription
${slaDescription}StringName of the SLA
${slaValue}StringSLA value as a time string
${slaStartDate}StringStart time of the SLA
${slaEndDate}StringEnd time of the SLA
${slaNotifyBefore}StringNotify before parameter in notification settings
${originStatus}StringOrigin status name, null if origin is not set by status
${targetStatus}StringTarget status name, null if target is not set by status
${slaExceeded}Boolean

Indicates whether or not SLA is exceeded (v7.1.0+)

Example
#if(${slaExceeded})You missed SLA deadline#end
${slaRemainingTime}StringRemaining duration of SLA (e.g. 1h 30m) (v7.1.0+)
${slaOverdue}StringOverdue duration of SLA (e.g. 1d 10h) (v7.1.0+)
${issue}IssueIssue object to retrieve various issue attributes (e.g. ${issue.summary} )
${customFieldManager}CustomFieldManager

CustomFieldManager could be used to insert custom field values into email text

Example
${issue.getCustomFieldValue($customFieldManager.getCustomFieldObject('customfield_11100'))
${dateTool}DateTool

DateTool could be used to format dates. (v7.7.0+)

Example
$dateTool.format('d-M-yyyy H:m:s', ${issue.getCustomFieldValue($customFieldManager.getCustomFieldObject('customfield_11201'))})
${dateTimeFormatter}DateTimeFormatter

DateTimeFormatter could be used to format dates with pre-defined formats in JIRA. (v7.7.0+)

 

Example
$dateTimeFormatter.formatDMYHMS(${issue.getCustomFieldValue($customFieldManager.getCustomFieldObject('customfield_11201'))})
$dateTimeFormatter.format(${issue.getCustomFieldValue($customFieldManager.getCustomFieldObject('customfield_11201'))})

 

 

Handy tip for template variables

 Many times custom fields or other fields on the issue might have a null value resulting in variable names displayed in e-mail content. To prevent this simply put an ! after $ sign on variable name like this:

 $!{issue.getCustomFieldValue($customFieldManager.getCustomFieldObject('customfield_11100'))}



In the following part, recipients (assignee, reporter, component leads, project lead, project role members, group members or even email addresses) can be configured. 

  • Assignee: Enable to send notification to assignee (by the time of notification) of the issue.
  • Reporter: Enable to send notification to reporter (by the time of notification) of the issue.
  • Component leads: Enable to send notification to the component leads (by the time of notification) of the issue.
  • Project lead: Enable to send notification to the project lead.
  • Emails: You can type any email here. For multiple emails use comma (,) e.g.: john@mycompany.com,david@yourcompany.com 
  • Project roles: Pick project role(s) to send notification to users who have that roles for the project of the issue
  • User field: The user(s) in this selected custom field will be notified.
  • Group: The user(s) in this group will be notified
  • Event: If you want to fire an event you can simply select here. By the time of notification, selected event will be fired for the issue.


There is a 'Preview' button to test the email template, type sample issue key and press the button.

You can define multiple SLA notifiers per SLA.



  • No labels