Skip to content

Allow IssuesController to create an issue with vulnerability feedback

Why are we doing this work

The current implementation of creating vulnerability feedback requires that the feedback and issue be created directly from the vulnerability. We want to change the workflow such that the user has the opportunity to modify the issue before creating the issue. This requires a change to the routes in IssuesController to determine if a vulnerability and feedback needs to be created from the new issue. This issue is specifically to add parameter checking for a vulnerability_id and if feedback should be created, and be able to pass that information to the form, which will then pass that to the create method.

This implementation should use Issues::BuildFromVulnerabilityService to create the issue.

This issue is broken out from #250578 (closed).

Relevant links

Non-functional requirements

  • Testing: Tests must be added for the IssuesController

Implementation plan

  • backend Add call to IssuesController#new for building the issue from the vulnerability
  • backend Add call to IssuesController#create for creating the issue with feedback and issue link
Edited by Jonathan Schafer