Add a resolve Jira Association button to Merge Requests
Problem to solve
Adding a button which quickly lets the user add a Jira ticket association to an MR would be a nice QOL when a MR is blocked.
Related issues
This issue is part of epic to improve the Jira <> Merge Request experience &4637.
Related issues and suggested order of implementation:
- Add a project-level toggle to require Jira association in Merge Requests #268294 (closed)
- Add Jira ticket association requirement to Merge Requests #268292 (closed)
- This issue
- Suggest a Jira issue when editing a Merge Request title or description #268296 (closed)
Proposal
If a MR lacks a Jira association:
- If the feature flag is enabled
- If the project has Jira integration
- Add a button
Add Jira issue to title or description
- When the user clicks this, redirect them to the MR edit page.
-
out of scope
If possible, auto select or highlight the Jira input field
Implementation
Estimated weight: 2
- Pass the
edit_namespace_project_merge_request_path
to the frontend - Add a
Edit merge request
button tomr_widget_jira_association_missing.vue
(!58658 (merged)) - When clicked, redirect them to the MR edit page
Edited by Jiaan Louw