Information from closed merge requests is not pulled after integrating the repository into the project
Hello
After importing the project from Jira into YouTrack, I connected the GitLab integration to the project, after which information about commits and merge requests was displayed in the issues.
However, for some reason, the issues do not display information about merge requests that were closed before the integration. This is very inconvenient, since the team does not see the entire development history along with all the merge requests.
Does the integration of Gitlab and YouTrack provide for pulling up information about closed merge requests?
Please sign in to leave a comment.
Hi! Merge requests are added whenever the issue ID is included in the title or description of the merge request. If you have old merge requests that you need to be added to YT, you can edit their title/description and add the issue ID. The update will trigger the integration, and the merge request will be added to the issue activity stream.
Stanislav Dubin hello! We know we can rename old closed and merged MR-s, but we dont want to. We have hundrets of MR-s and changing their title will bump them up in list and change update date. Are there any other ways available?
Dzmitry Dranitski, there is no way to import old MRs without making any updates to them, I'm afraid.
Okey, can you at least tell me how YouTrack get informed about changes in MRs? Does YouTrack periodically polls GitLab API for changes or GitLab triggers some webhook in YouTrack to inform it about changes in MRs?
Apologies for not being sufficiently clear before. It's GitLab that makes requests to YouTrack when there is a merge request. There is an action to Import commits and open pull requests that could help to import the old MRs; however, it only imports open MRs. So there is no way to have them appear in YT without any updates whatsoever. I've created a feature request to import closed MRs, based on your use case: JT-76374. But it will not be implemented soon because the development roadmap for the foreseeable future has already been set.