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
- Enable the Jira Integration for a project.
- Enable the option "Enable Jira issues creation from vulnerabilities" for the project.
- Create a merge request with some vulnerabilities detected by one of the scanner.
- Make sure the "Gitlab Issues" functionality is enabled.
- 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
- Notice the create "jira issue button" is present.
- Disable the Gitlab Issues functionality for the project.
- Open the MR and click on one of the vulnerabilities.
- 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 |
---|---|
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