2017-08-17 22:00:37 +05:30
|
|
|
# Closing Issues
|
|
|
|
|
|
|
|
Please read through the [GitLab Issue Documentation](index.md) 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](automatic_issue_closing.md)
|
|
|
|
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:
|
|
|
|
|
|
|
|
```md
|
|
|
|
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):
|
|
|
|
|
|
|
|
```md
|
|
|
|
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
|
|
|
|
|
2018-10-15 14:42:47 +05:30
|
|
|
You can close an issue from [Issue Boards](../issue_board.md) by dragging an issue card
|
2017-08-17 22:00:37 +05:30
|
|
|
from its list and dropping into **Closed**.
|
|
|
|
|
|
|
|

|
|
|
|
|
2018-10-15 14:42:47 +05:30
|
|
|
## Customizing the issue closing pattern
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
Alternatively, a GitLab **administrator** can
|
2018-10-15 14:42:47 +05:30
|
|
|
[customize the issue closing pattern](../../../administration/issue_closing_pattern.md).
|