How to call the Copy pagetree built-in scripts (Confluence Script runner)

Koen Gillard (CalmWare) August 1, 2016

Dear

I'd like to call the built-in Copy Pagetree script from within an existing Custom REST Endpoint.

Is this or any other interaction with the built-in scripts documented somewhere?

Like, what's the location of the script, what are the (required) arguments etc

Thanks in advance

Kind regards

Koen Gillard

3 answers

0 votes
Volodymyr Havryliuk May 12, 2020

In order to tests where found when running them from Idea, package with your tests should be specified in Scriptrunner UI

0 votes
Volodymyr Havryliuk January 16, 2019

Hello, Koen Gillard. Did you find answers for your questions?

0 votes
Jonny Carter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 10, 2016

The class is com.onresolve.scriptrunner.canned.confluence.admin.CopyTree. You can find it in the plugin jar (after unzipping it) under com/onresolve/scriptrunner/canned/confluence/admin/CopyTree.groovy.

There are some notes in the JIRA documentation about calling built-in scripts remotely via REST calls and hacking together your own "canned" script. The same concepts should roughly translate to Confluence.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events