Closing Issues
Please read through the GitLab Issue Documentation for an overview on GitLab Issues.
Directly
Whenever you decide that’s no longer need for that issue, close the issue using the close button:
Via Merge Request
When a merge request resolves the discussion over an issue, you can make it close that issue(s) when merged.
All you need is to use a keyword accompanying the issue number, add to the description of that MR.
In this example, the keyword “closes” prefixing the issue number will create a relationship in such a way that the merge request will close the issue when merged.
Mentioning various issues in the same line also works for this purpose:
Closes #333, #444, #555 and #666
If the issue is in a different repository rather then the MR’s, add the full URL for that issue(s):
Closes #333, #444, and https://gitlab.com/<username>/<projectname>/issues/<xxx>
All the following keywords will produce the same behaviour:
- Close, Closes, Closed, Closing, close, closes, closed, closing
- Fix, Fixes, Fixed, Fixing, fix, fixes, fixed, fixing
- Resolve, Resolves, Resolved, Resolving, resolve, resolves, resolved, resolving
If you use any other word before the issue number, the issue and the MR will link to each other, but the MR will NOT close the issue(s) when merged.
From the Issue Board
You can close an issue from Issue Boards by dragging an issue card from its list and dropping into Closed.
Customizing the issue closing pattern
Alternatively, a GitLab administrator can customize the issue closing pattern.
Help and feedback
If there's something you don't like about this feature
To propose functionality that GitLab does not yet offer
To further help GitLab in shaping new features
If you didn't find what you were looking for
If you want help with something very specific to your use case, and can use some community support
POST ON GITLAB FORUM
If you have problems setting up or using this feature (depending on your GitLab subscription)
REQUEST SUPPORT
To view all GitLab tiers and features or to upgrade
If you want to try all features available in GitLab.com
If you want to try all features available in GitLab self-managed
If you spot an error or a need for improvement and would like to fix it yourself in a merge request
EDIT THIS PAGE
If you would like to suggest an improvement to this doc