From b6d66ea0ccee79551f9de7c18f6b2f35fefe645c Mon Sep 17 00:00:00 2001 From: Niklas Date: Tue, 18 Jun 2024 14:20:17 +0200 Subject: [PATCH] Add the project name and project URL to bom processing notifications (#745) --- .../notification/publisher/msteams.peb | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/main/resources/templates/notification/publisher/msteams.peb b/src/main/resources/templates/notification/publisher/msteams.peb index 0fd980066..bb6121106 100644 --- a/src/main/resources/templates/notification/publisher/msteams.peb +++ b/src/main/resources/templates/notification/publisher/msteams.peb @@ -96,6 +96,29 @@ "value": "{{ subject.project | summarize | escape(strategy="json") }}" } ], + {% elseif notification.group == "GROUP_BOM_PROCESSING_FAILED" %} + "facts": [ + { + "name": "Level", + "value": "{{ notification.level | escape(strategy="json") }}" + }, + { + "name": "Scope", + "value": "{{ notification.scope | escape(strategy="json") }}" + }, + { + "name": "Group", + "value": "{{ notification.group | escape(strategy="json") }}" + }, + { + "name": "Project", + "value": "{{ subject.project | summarize | escape(strategy="json") }}" + }, + { + "name": "Project URL", + "value": "{{ baseUrl }}/projects/{{ subject.project.uuid | escape(strategy='json') }}" + } + ], {% else %} "facts": [ {