I have imported projects from another issue tracker. Now I need to rename all version to "ca " + version.
I've a newbie with script runner. I need a point in the right direction. Can anyone share a script for this?
Hello @Phil Wade
You can use the ComponentAccessor to get versionManager and then all versions of the projects and then just update the version name using the below method in the versionManager
https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/project/version/VersionManager.html#editVersionDetails-com.atlassian.jira.project.version.Version-java.lang.String-java.lang.String-
https://docs.atlassian.com/software/jira/docs/api/7.6.1/index.html?com/atlassian/jira/component/ComponentAccessor.html
https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/project/version/VersionManager.html
https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/component/ComponentAccessor.html#getVersionManager--
https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/project/version/VersionManager.html#getVersions-java.lang.Long-
It looks like you're new here. Sign in or register to get started.