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

Aliases do not appear to be reported in notifications

Open markehack opened this issue 9 months ago • 0 comments

Current Behavior

Issue #1992 was created to add aliases to notifications and while the original commit added aliases to the email template, this was later backed out.

In new NEW_VULNERABILITY notifications, the alias seems to be blank even though the vulnerability clearly indicates that there is an alias. I copied the code from the email template and put it into a JIRA template and no alias entry is ever generated.

{%if subject.vulnerability.aliases is not null %} Aliases {% for alias in subject.vulnerability.aliases %} - {{ alias.vulnId }} {% endfor %}{% endif %}

Steps to Reproduce

  1. Add the above logic to a template
  2. Add a component which has a vulnerability with and alias to a project
  3. Check the generated notification

Expected Behavior

The alias should be shown for the vulnerability

Dependency-Track Version

4.10.x

Dependency-Track Distribution

Container Image

Database Server

N/A

Database Server Version

No response

Browser

Google Chrome

Checklist

markehack avatar May 16 '24 17:05 markehack