Skip to content

GraphQl mutation for creating a Jira issue on vulnerability details page [RUN ALL RSPEC] [RUN AS-IF-FOSS]

What does this MR do?

This is MR will solve #323306 (closed).

It includes:

  • The implementation to create Jira Issues via GraphQl mutation on Security the Vulnerability Details Page
  • Tests

The feature is currently hidden behind a feature Flag.

In #323306 (closed) it was planned to use the GraphQl Mutation on the vulnerability Modal as well, this is current blocked since the API is not providing needed Vulnerability ID's yet (Details).

How to reproduce

  1. If not yet happened connect a Jira Instance in your GDK
  2. enter rails console by entering rails c in you gitlab directory
  3. run Feature.enable(:create_vulnerability_jira_issue_via_graphql)
  4. Find a Project with vulnerabilties (for example https://gitlab.com/gitlab-examples/security/security-reports)
  5. Security & Compliance -> Vulnerability-Report -> Click a Vulnerability to enter the Vulnerability-Detail Page
  6. Click the Create Jira Issue button

Screenshots (strongly suggested)

Screenshot_2021-04-29_at_10.44.13

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Jannik Lehmann

Merge request reports