Copy an issue from one project to another project, keeping the same or similar ticket info. This example does not link
the issues together.
I am managing three teams, and we have one large master project where we keep all issues in one backlog. During each
team's sprint planning, they are able to copy upcoming issues from the master project into their sprint project
Good To Know
This script does not link the source and copy issues together, but there is a
similar script that does it.
Copy this snippet into a listener, post function, or other features of ScriptRunner for Jira.
The fields added in the list of 'CloneIssue.FIELD_SELECTED_FIELDS' are the ones cloned.
To know which fields can be added, please consult the class 'com.onresolve.scriptrunner.canned.jira.utils.AbstractCloneIssue.ALL_SYSTEM_FIELDS'