The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Shawn Doyle - ReleaseTEAM
Community Champion
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

TAGS
AUG Leaders

Atlassian Community Events