...
Code Block | ||||
---|---|---|---|---|
| ||||
number [] issues = selectPages("stateexpiry < startOfDay()");
//new labels to be added to pages
string [] newLabels = "confluence|power_scripts";
//get the id of the parent
number parent = getPage("CTR", "Add a new label to the children of a page");
//get the ids of the children
number [] children = getChildPages(parent);
for(number child in children) { //loop through children
//add labels to the child page
addLabels(child, newLabels);
} |
...