System note referencing closed issue does not reflect closed status
### Summary (Summarize the bug encountered concisely) ### Steps to reproduce - Create a new project - Create a new issue `IssueA` - Create a new issue `IssueB` - Reference `IssueA` in `IssueB` - Navigate to `IssueA` - Notice the system note that mentions that `IssueB` referenced `IssueA` - Close `IssueB` - Navigate to `IssueA` - Notice the system note that mentions that `IssueB` referenced `IssueA` does not reflect `IssueB`'s new status ### Example Project - https://gitlab.com/issue-reproduce/referenced-issue-before-closure/issues/1#note_64716515 ### Screenshots ![closed-issue-mention-system-note](/uploads/d932962ee572216ed6cfb624430a8d14/closed-issue-mention-system-note.gif) ### What is the current *bug* behavior? In the above example, `IssueA` does not reflect the `IssueB` is now closed in the system note for the mention ### What is the expected *correct* behavior? In the above example, `IssueA` should reflect that `IssueB` is now closed in the system note for the mention ### Relevant logs and/or screenshots ### Output of checks gitlab-ce~3293941 `v10.6.0` ### Possible fixes
issue