dependency-track icon indicating copy to clipboard operation
dependency-track copied to clipboard

Support limiting to tags for scheduled summary notifications

Open vanyagyosheva opened this issue 6 months ago • 5 comments

Current Behavior

Hello, We are using Dependency-Track v4.13.2. We have many projects and we would like to be alerted in slack chnanel based on the tag selection. If we don't Limit to the Scheduled notification alert we get error in the application log based on your message The alert must be limited to one or more projects in order for summaries to work. When selecting projects to limit the alert to, consider that choosing too many projects can cause summaries to grow too large for certain destinations, leading to them being rejected. That is why we splitted into several tags , but if we don't add all the projects here , the tag filter doesn't work

Image

when we add the projects under Limit to projects we get notification , but the purpose of chosing tags is to avoid the overwork adding new projects all the time. Can you please investigate Do you have more detailed templates for slack because what we get is not clear which project , what vulnerability , which tag, which version teh default format is

DependencyTrackNotifier APP 3:54 PM NEW_VULNERABILITIES_SUMMARY INFORMATIONAL | PORTFOLIO New Vulnerabilities Summary No new vulnerabilities identified since 2025-06-05T13:28:09Z. 3:54 NEW_POLICY_VIOLATIONS_SUMMARY INFORMATIONAL | PORTFOLIO New Policy Violations Summary No new policy violations identified since 2025-06-05T13:28:09Z.

Steps to Reproduce

  1. Creat many projects with 2,3 tags
  2. Creat Scheduled Notification with publisher slack
  3. Limit to one of the tags
  4. Notification is not sent

Expected Behavior

Notificationalert should be sent

we expect to limit the dependency trck project only using the specified tag we would like to have better and more clear alert notification in slack thread

Dependency-Track Version

4.13.2

Dependency-Track Distribution

Container Image

Database Server

PostgreSQL

Database Server Version

16.8

Browser

Google Chrome

Checklist

vanyagyosheva avatar Jun 09 '25 13:06 vanyagyosheva

Converted to an enhancement request. You are totally right, it should be possible to use tags to select projects, rather than having to select projects manually.

nscuro avatar Jun 09 '25 16:06 nscuro

Also we tried to create email scheduled notification the projects having one tag, in our case alpha are exactly 5 , and we get in teh dependency track log 2025-06-10 13:22:39,670 WARN [ScheduledNotificationDispatchTask] Failed to dispatch notification for group NEW_POLICY_VIOLATIONS_SUMMARY [notificationRuleUuid=.., notificationRuleName=email-notification-tag-stable] java.lang.IllegalStateException: Scheduled notifications for group NEW_POLICY_VIOLATIONS_SUMMARY must be limited to at least one project at org.dependencytrack.tasks.ScheduledNotificationDispatchTask.createNewPolicyViolationsNotification(ScheduledNotificationDispatchTask.java:247) at org.dependencytrack.tasks.ScheduledNotificationDispatchTask.processRule(ScheduledNotificationDispatchTask.java:119) at org.dependencytrack.tasks.ScheduledNotificationDispatchTask.inform(ScheduledNotificationDispatchTask.java:99) at alpine.event.framework.BaseEventService.lambda$publish$0(BaseEventService.java:110) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source)

this should not happen, expected behavior is the tag limit to option to apply on the projects having this tag

vanyagyosheva avatar Jun 10 '25 13:06 vanyagyosheva

Yeah, this is a general limitation and independent of which destination you configure.

nscuro avatar Jun 10 '25 13:06 nscuro

@nscuro , is it planned to be imlemented ? In our setup is difficult to maintain the projects in the alert configuration.

vanyagyosheva avatar Jun 10 '25 13:06 vanyagyosheva

is it planned to be implemented?

Yes, as evident by the p2 and size/S labels.

nscuro avatar Jun 10 '25 14:06 nscuro

is there any progress for this ticket?

barbacar avatar Jul 15 '25 12:07 barbacar

We’ve marked this as an enhancement, but I think it’s actually a bug. Let’s say I have 10 applications and I regularly release new versions. I have to keep going and add the latest versions of the apps to the notification list each time. That is a lot of manual work. If there were a “latest” tag created by us and only the most recent versions were marked with this tag, I would receive notifications only for the “latest” tagged versions.

barbacar avatar Sep 22 '25 08:09 barbacar

hello @nscuro , do you have any update on that?

vanyagyosheva avatar Oct 23 '25 09:10 vanyagyosheva