Add new mutation create_jira_issue_form_url
What does this MR do and why?
Add new mutation create_jira_issue_form_url
This adds a new mutation for security findings that creates a vulnerability for the security finding if there is no associated one and returns the jira issue form url, pre-filled with relevant data. This URL redirects to the Jira creation form.
References
Related #578512 (closed)
Screenshots or screen recordings
How to set up and validate locally
- Create MR with new findings
- Set up Jira Integration and fill in "create jira issues for vulnerabilities" settings
- Use following mutation and replace uuid with the finding uuid and project with the project id
mutation createJiraIssueFormUrl {
securityFindingJiraIssueFormUrlCreate(
input: { uuid: "2177be26-230c-552e-8ed9-879ec966e5d8", project: "gid://gitlab/Project/29" }
) {
jiraIssueFormUrl
errors
}
}
- Validate it returns
jiraIssueFormUrland you can go to that url on Jira and it's pre-filled with vulnerability data.
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