I have this script that is supposed to propagate changes to versions in specific project to another projects that target the same version. The main goal was to eliminate maintenance across different projects that use that same exact version (create, delete, update, release...etc).
This is meant to be a workaround for providing a set of global fixversions that all projects can subscribe to. In nutshell, we have around five projects that target same set of versions that belong to an upstream open-source project working on Linux Kernel. so the version of interest is 'Kernel*'. Script works fine on JIRA 6.4.* all changes to any 'Kernel*' versions on that Kernel project are mirrored on the subscribing projcts. When tested on JIRA 7, only creations seems to work but version updates do not work.
versionmanager.editVersion methods don't seem to work properly and don't throw exception either. *versionmanager.createVersion does work and i can see versions created in other projects, but not editing.
SCRIPT ATTACHED FOR REVIEW.
Not sure if this is a bug/sort of deprecation on JIRA API or problem with scriptrunner.