Problem description:
Trying to migrate our internal atlassian plugin that uses ScriptRunner. After changing the versions of Confluence and ScriptRunner (see below) I got the following problem:
The class com.onresolve.scriptrunner.canned.confluence.admin.copytree.CopyTree is missing in the Maven package.
We used the class to implement the same functionality as the CopySpace builtin Script, but removing the CopyLabel part. Here are the affected LOCs
//import class
import com.onresolve.scriptrunner.canned.confluence.admin.copytree.CopyTree
//init CopyTree with a given Space
def copyTree = new CopyTree(targetSpace)
//get CopyInstructions and copy them to the target space
def copyInstructions = copyTree.getCopyInstructions(targetSpace, tmp, Closure.IDENTITY).copyInstructions
copyTree.copy(targetSpace, copyInstructions)
//copy blog posts
copyTree.copyOnePageOrBlogPost(blogPost, space, linksRewriter)
Without this Class our plugin is not buildable.
Is there an alternative to the missing CopyTree class?
Migration:
Confluence: 7.4.8 -> 8.5.9
ScriptRunner: 6.23.0 -> 8.28.0
If you haven't already, I suggest you contact Adaptavist for suggestions. They have a forum on their website.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.