Skip to content

Use Issues::BuildFromVulnerabilityService to populate a new issue from a vulnerability

Why are we doing this work

This is the second step in presenting the issue form with vulnerability information pre-filled. That way, the user has the opportunity to adjust the issue if they wanted to.

Relevant links

Non-functional requirements

  • [-] Documentation: Update documentation to indicate workflow change (no change needed)
  • Testing: Add tests for route changes to ensure proper page displays

Implementation plan

  • backend Edit new route in IssuesController that uses the new service if a vulnerability parameter is included
    • Make sure we create a Vulnerabilities::IssueLink after the issue is persisted in the subsequent create call.
Edited by Jonathan Schafer