dependency-track
dependency-track copied to clipboard
Aliases do not appear to be reported in notifications
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
- Add the above logic to a template
- Add a component which has a vulnerability with and alias to a project
- 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
- [X] I have read and understand the contributing guidelines
- [X] I have checked the existing issues for whether this defect was already reported