Hi,
We have over 300 pages with the Add a label macro in each page. The macro has a specific expire label that notifies our page owner/modifier that their page has been expired.
For example, each page has the label, "expire-single-20/05/31". All these pages are now expired. What I want to be able to do is in bulk remove that specific label from the add a label macro on each page and add a new one for next year, "expire-single-21/05/31"
Is this possible using scriptrunner console?
I was able to use the built in script runner template to bulk remove labels and add the,. however, this does not help because once the page is accessed and the Add a label macro puts the old label back on the page. For right now I have to go in and manually change the Add a label macro on each page. in Order for the old label to not reappear.
Hi William,
Have you tried using Scriptrunner's Bulk Add/Remove Labels on One or More Pages built in script? Just use CQL search to limit it to the pages with old label, add the new label, CQL search for the new label, and then bulk remove the old label. Cheers!
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.