Are you saying it doesn't copy the issue links? That code doesn't, what it does is clones the issue and links it.
You could modify it to use IssueLinkManager to clone the links too.
You would be better of using the built-in script: https://jamieechlin.atlassian.net/wiki/display/GRV/Built-In+Scripts#Built-InScripts-Clonesanissueandlinks - rather than that old example code which I make no effort to maintain. But IIRC that doesn't clone issue links either.
Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs