Skip to content

Notification template MSTeams shows empty "Project" and "Component" #2638

Closed

Description

@mvandermade

Current Behavior

image

Steps to Reproduce

  1. Set up notification with the MSTeams template
  2. Upload project with known vunerabilities

Expected Behavior

Use the same values as the Slack integration does namely the values in subject.component. (Slack file here: https://github.com/mvandermade/dependency-track/blob/9e3a50919206e7b265c629dbf9891907d3a4da91/src/main/resources/templates/notification/publisher/slack.peb)

I have a commit here that makes the MSTeams notification populate the Project and Component again:
master...mvandermade:dependency-track:fix-project-component-missing-msteams#diff-822e5aeb4a9489b450743487fc97169fd20a562f787ac929d053e4bc6cea854d

Dependency-Track Version

4.7.1

Dependency-Track Distribution

Container Image

Database Server

H2

Database Server Version

No response

Browser

N/A

Checklist

Activity

  1. added
    defect
    on Apr 3, 2023
  2. syalioune commented on Apr 10, 2023

    @syalioune
    Contributor

    Hello @mvandermade

    Thanks for the analysis and the suggested fix. Seems correct to me.

    I have a commit here that makes the MSTeams notification populate the Project and Component again:
    master...mvandermade:dependency-track:fix-project-component-missing-msteams#diff-822e5aeb4a9489b450743487fc97169fd20a562f787ac929d053e4bc6cea854d

    Can you provide a PR with your changes ? See https://github.com/DependencyTrack/dependency-track/blob/master/CONTRIBUTING.md#contributing-code

  3. added this to the 4.8 milestone on Apr 11, 2023
  4. added a commit that references this issue on Apr 12, 2023
    1802a8c
  5. github-actions commented on May 12, 2023

    @github-actions
    Contributor

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  6. locked as resolved and limited conversation to collaborators on May 12, 2023
  7. added a commit that references this issue on Jun 17, 2026
    01b1108
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    defect

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions