Ensure MRs deleted in GitLab are also deleted in Jira
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Once you have setup the GitLab.com for Jira Cloud application in Jira, if you mention a Jira issue (e.g. GIT-1) in GitLab while creating a new MR (e.g. GIT-1-dev-mr), the MR appears as a pull request in the Jira Development Panel.
We have updated the branch_hooks_service.rb to remove a branch from Jira when it is deleted on GitLab, however, we need to follow up on this work and also delete the Pull Request on Jira when a merge request is deleted.
Currently Merge Request are synced with JiraConnect in the app/services/merge_requests/base_service.rb, so it would require enqueuing a new worker when merge requests are deleted.
Edited by 🤖 GitLab Bot 🤖