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.
Hi all! My name is Miles and I work on the Marketplace team. We’re looking for better ways to recommend and suggest apps that are truly crowd favorites, so of course we wanted to poll the Community. ...
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