When moving an issue in GitLab to a new Project, the original issue is closed and a new issue is opened. This means that
issues that these issues might be reopened for an unwanted reason. The GitLab Triage Project doesn’t directly support
checking if an issue has been moved. This workaround for this is to check
if the issue resource has a field moved_to_id
that’s neither nil nor zero.
resource_rules:
issues:
rules:
- name: Closed issues that haven't been moved
conditions:
ruby: |
moved_to_id = resource[:moved_to_id]
moved_to_id.nil? || moved_to_id.nonzero?