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

  1. Enable feature flag http://gdk.test:3000/rails/features/finding_create_jira_issue_form_url
  2. 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.yml and create a new MR with the changes)
  3. Enable Jira integration for your project
    1. Create Jira cloud instance (if necessary, I can provide link to one + API token)
    2. Follow steps for Jira Cloud
    3. Follow the steps in Jira issues for vulnerabilities section
    4. Make sure to Select the Customize Jira issues checkbox
    5. Save changes
  4. Go to MR and open security widget. Click on one of the findings
  5. Click "Create jira issue"
  6. 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

Merge request reports

Loading