Create Jira issue via new security findings modal
What does this MR do and why?
Create Jira issue via new security findings modal
Adds capability to create Jira issues via the new security findings modal.
Screenshots or screen recordings
Before | After |
---|---|
recording of issue creation |
---|
Screen_Recording_2023-06-22_at_8.39.21_pm |
How to set up and validate locally
Setup
- Have the related FF enabled:
echo "Feature.enable(:standalone_finding_modal)" | rails c
- You'll need an EE License
- You'll need to have runners enabled (See $2408961 for setting up a runner)
- Import https://gitlab.com/gitlab-examples/security/security-reports
- Run a pipeline on master
Validation
- Enable the Jira integration for a project:
- Either create a Jira test project at https://jira.atlassian.com/ or reach out to me for an API key
- Navigate to the security-reports project
- Go to Settings -> Integrations -> Jira
- Enable the integration and fill out the form
- Enable "Jira Issues" and "Issue creation from vulnerabilities"
- Make sure that the type of Jira issue to create from a vulnerability is selected
- Click on a finding and verify that the "Create Jira issue" button displays (including an "external link" icon).
- Click on the button and verify that the loading spinner is active and the button is disabled.
- Wait until the newly created issue opens in a new tab. Verify that it has the correct information.
- Go back to the pipeline's tab and verify that the "Create Jira issue" button no longer shows up.
- Refresh the page, click on the same finding and verify that the button is still not showing up.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #393378 (closed)
Edited by David Pisek