Moving Issues in Bulk method error
I'm trying to move all issues from one project to another using gitlab-rails and script that i found in GitLab issues documentation. Here is the link to it https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#moving-issues-in-bulk
I created rb script, set in it all needed information and ran with "sudo gitlab-rails runner /path/to/script.rb" at the gitlab server console.
And get error:
/path/to/script.rb:2:in '<top (required)>': undefined method 'issues' for nil:NilClass (NoMethodError)
Even "issue" as method not highlighted.
My question is how to run 'Moving Issues in Bulk' script in correct way?
GitLab Enterprise Edition 12.2.1-ee