From 375eb97198132d6f4bdf9f4834ce952865083c52 Mon Sep 17 00:00:00 2001 From: nscuro Date: Tue, 18 Jun 2024 13:50:40 +0200 Subject: [PATCH] Add the project name and project URL to bom processing notifications Ports https://github.com/DependencyTrack/dependency-track/pull/3666 from Dependency-Track v4.11.0 Co-authored-by: Ross Murphy Signed-off-by: nscuro --- .../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": [ {