Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I bulk change a label in the Add a label macro?

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.

1 answer

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!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

82 views 1 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you