Pipeline Security Report: Show existing Jira issue in modal
Context
We recently switched the Jira issue-creation from using a URL-based approach to a GraphQL mutation. This allows the backend to populate the GraphQL response with the attached Jira issue, which gives us the means to show it in the modal.
Currently, we don't show any attached Jira issues, but GitLab issues when present:
Report | Modal |
---|---|
We want to update the modal so it displays existing Jira issues if the integration is enabled. The vulnerability details page currently supports it like this:
Details in discussion here: !146743 (comment 1833365243)
Implementation Details
- The related code is within
ee/app/assets/javascripts/security_dashboard/components/pipeline/vulnerability_finding_modal.vue
- We already determined if the jira-integration is enabled (
hasJiraVulnerabilityIssueCreationEnabled
computed prop) - We already query for
externalIssueLinks
from within the modal (note: we are doing this via the finding'svulnerability
field, which can be an issue - needs to be investigated) - The solution-card component that we use to display existing GitLab issues currently does not support Jira issues. We either update it to do so, or create a separate component that gets rendered when the Jira-integration is enabled
Edited by David Pisek