Skip to content

Create Jira Issue button does not show on a pipeline's vulnerability list and MR-widget modal if "Gitlab Issues" are disabled for project

Summary

There is an inconsistency on the way this button shows depending of the configuration.

Steps to reproduce

  1. Enable the Jira Integration for a project.
  2. Enable the option "Enable Jira issues creation from vulnerabilities" for the project.
  3. Create a merge request with some vulnerabilities detected by one of the scanner.
  4. Make sure the "Gitlab Issues" functionality is enabled.
  5. Open the the pipeline's security tab and check the vulnerability listing's action buttons / Click on one of the vulnerabilities in the MR widget
  6. Notice the create "jira issue button" is present.
  7. Disable the Gitlab Issues functionality for the project.
  8. Open the MR and click on one of the vulnerabilities.
  9. Notice the create "Jira issue button" is not longer present.

What is the current bug behavior?

Create Jira Issue button does not show in pipeline / MR widget if "Gitlab Issues" are disabled for project

What is the expected correct behavior?

The "Create Jira Issue" button should be present in pipeline / MR widget even when Gitlab issues are disabled.

Relevant logs and/or screenshots

Pipeline Vulnerability Listing MR-widget Modal
pipeline_before MR-widget_before

Implantation Plan

  • Add check for jira-vulnerability-path to table row component
  • Also add a check to the related canCreateIssue getter
  • Update specs
Edited by David Pisek