Redirect to jira issue form when setting is enabled
What does this MR do and why?
Redirect to jira issue creation form when setting is enabled
New mutation was added in Add new mutation create_jira_issue_form_url (!214367 - merged).
When the feature flag findingCreateJiraIssueFormUrl is enabled and the
Jira integration setting customizeJiraIssueEnabled is enabled, the
finding modal will redirect to the Jira issue creation form with
pre-filled data of the finding when clicking "Create jira issue". This
was previously only available on the vulnerability details page.
References
Related #578512 (closed)
Screenshots or screen recordings
create_jira_issue_form_url_redirect
How to set up and validate locally
- Enable feature flag http://gdk.test:3000/rails/features/finding_create_jira_issue_form_url
- Create MR with new security findings in a project (e.g. import https://gitlab.com/gitlab-examples/security/security-reports, comment one of the jobs in
.gitlab-ci.yml, run pipeline on master, uncomment the job in.gitlab-ci.ymland create a new MR with the changes) -
Enable Jira integration for your project
- Create Jira cloud instance (if necessary, I can provide link to one + API token)
- Follow steps for Jira Cloud
- Follow the steps in Jira issues for vulnerabilities section
- Make sure to Select the Customize Jira issues checkbox
- Save changes
- Go to MR and open security widget. Click on one of the findings
- Click "Create jira issue"
- Validate that you are redirected to a Jira issue form where some details of the finding are pre-filled
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Lorenz van Herwaarden