Adaptavist ScriptRunner for Confluence Data Center - Missing Class "CopyTree"

Stefan Rybinski June 13, 2024

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

1 answer

0 votes
Shawn Doyle - ReleaseTEAM
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 13, 2024

If you haven't already, I suggest you contact Adaptavist for suggestions.  They have a forum on their website.

Stefan Rybinski June 19, 2024

Already done; See here

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events