DependencyTrack / DependencyTrack/dependency-track
Aliases do not appear to be reported in notifications
- Dominant language
- Java
- Stars
- 4.2k
- Forks
- 811
- Avg merge
- 8h 39m
- Merged PRs (30d)
- 237
Description
### 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
- [X] I have read and understand the [contributing guidelines](https://github.com/DependencyTrack/dependency-track/blob/master/CONTRIBUTING.md#filing-issues)
- [X] I have checked the [existing issues](https://github.com/DependencyTrack/dependency-track/issues) for whether this defect was already reported
Contributor guide
Assessment
This issue has not been assessed yet.