Connect Merge Requests To Tasks
Problem
There is no way to associate a merge request to a work item from within the work item.
Proposal
Create a "hard linked" MR from /create_merge_request <branch name>
quick action. Provide a way to define a target project in quick action. Ideally, project selection supports autocomplete. A project would be required when creating an MR from a group work item. It would be optional if the work item is owned by a project. The development widget updates in real time.
If a work item is referenced in an MR description, branch name, or commit message using the appropriate syntax, create a "hard" relationship to the referenced work item. The development widget updates in real time.
UX
[UX] Work items: Development widget (MRs, branc... (#427975 - closed)
Acceptance criteria
Displaying relationships
In all cases this means 'implements'/'closes' relationship
-
Shows merge requests with state, title, and assignee -
Includes MR popover on title hover -
Includes user tooltip on assignee hover
-
-
Includes + # more
truncation after 3 items-
User can click to reveal all items
-
-
MR details (title, state, assignee) are synced (no refresh needed) -
Relationships are added/removed without refresh -
Shows "i" indicator with tooltip when work item will be closed by MR -
Indicates when the work item was closed by the MR
-
Managing relationships
-
Can link MR to work item from MR using existing closing patterns
Internal Events
Include tracking based off of the internal event tracking method. See here for details.
Release notes
Tasks are frequently used to break down issues into engineering implementation steps. Before this release, there was no way to connect a merge request to a task it implements. You can now use the same closing pattern that you would when referencing issues from a merge request description to connect a merge request to a task. From the task view, connected merge requests are visible from the sidebar. If your project has the auto-close setting enabled, the task will automatically close when the connected merge request is merged into your default branch.