I am trying to move issue from one project to another from workflow.
I've tried in two ways:
var newProject = entities.Project.findByKey('PROJ2');
ctx.issue.project = newProject;
but in both cases I got errors:
Workflow developer reports error: Invalid argument: null (@jetbrains/youtrack-scripting-api/entities#308)
Is this the correct way to move issue from one project to another?
PS: from the web-interface via Command Dialog the command: