Date: Thu, 28 Mar 2024 22:54:24 +0000 (UTC) Message-ID: <1880932588.12069.1711666464378@change.sos-berlin.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_12068_1380733384.1711666464378" ------=_Part_12068_1380733384.1711666464378 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Change the sytelsheet for JobScheduler e-mail service to define diff= erent recipients for different severity levels as shown below:
<?xml= version=3D'1.0' encoding=3D'iso-8859-1' ?> <xsl:stylesheet xmlns:xsl =3D "http://www.w3.org/1999/XSL/Transform" ver= sion =3D "1.0"> =20 <xsl:param name=3D"lang" select=3D"'en'"/>=20 =20 <xsl:variable name=3D"job" select=3D"/scheduler_event/state/jobs/job= [ @job =3D /scheduler_event/@job ]" /> <xsl:variable name=3D"task" select=3D"$job/tasks/task[ @task =3D /sch= eduler_event/@task ]" /> <xsl:template match=3D"/scheduler_event"> ... <xsl:choose> <xsl:when test=3D"@severity=3D'info'"> <xsl:attribute name=3D"to"><xsl:value-of select=3D"'ad= min@mail.com'" /></xsl:attribute> </xsl:when> <xsl:when test=3D"@severity=3D'warning'"> <xsl:attribute name=3D"to"><xsl:value-of select=3D"'ad= min@mail.com'" /></xsl:attribute> </xsl:when> <xsl:when test=3D"@severity=3D'error'"> <xsl:attribute name=3D"to"><xsl:value-of select=3D"'ad= min@mail.com,boss@mail.com'" /></xsl:attribute> </xsl:when> <xsl:when test=3D"@severity=3D'fatal'"> <xsl:attribute name=3D"to"><xsl:value-of select=3D"'ad= min@mail.com,boss@mail.com'" /></xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:copy-of select=3D"mail/header/@to" /> <xsl:copy-of select=3D"mail/header/@cc" /> <xsl:copy-of select=3D"mail/header/@bcc" /> </xsl:otherwise> </xsl:choose> ... </xsl:template> </xsl:stylesheet>