Forums

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

Plugin PowerScripts : routines setLabels cause an error on the displaying of page

Julien GERARD May 28, 2019

Hello folks,

I'm trying the plugin PowerScripts and I have a weird issue following the usage of the addLabelsToChildren.sil macro.

 

When I use it, I got an error with the rendering of the page. The stacktrace shows that the referred label has no associated ID.

The script is : 

string [] pages = {"Page Title 1", "Page Title 2", "Page Title 3"};
string newLabel = "newLabel";

for(string p in pages) {
number parentID = getPage("PKEY", p);
setLabels(parentID, newLabel);

for(number child in getChildPages(parentID)) {
setLabels(child, newLabel);
}
}

return "Done";

 

I use the latest version of the plugin on my Confluence server installation 6.7.0

When I use addLabels routines, there are no add of the label to the page, but the label is added to the list of used labels.

 

Any clue?

 

Regards

 

1 answer

0 votes
Matthew Dell
Contributor
May 30, 2019

Watching this. I installed and tested the same in my dev environment with the same result. What I noticed is the problem affects the direct children of the parent page, but not the children of the children. Confluence Server 6.15.4

I also tried the variants of the script found here with the same behavior:
https://www.youtube.com/watch?v=nM0a8JM2T2E&feature=youtu.be&list=PLKTAla3ZrW8mMmYvgOVf3UPXU8V4nc-xj

https://confluence.cprime.io/display/CTR/Add+a+new+label+to+the+children+of+a+page

Julien GERARD June 2, 2019

I contacted the support, and they gave me a new version if the plugin.

I gonna try this new one.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events