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

Changing page titles through ScriptRunner without breaking links Edited

I was trying to automatically change titles every time a page is updated or created through a ScriptRunner Event Listener.

import com.atlassian.confluence.event.events.content.page.PageEvent
def event = event as PageEvent
def title = event.content.getTitle()

//do stuff with title

event.content.setTitle(title)

This script does what it's supposed to do but the update does not trigger a change of links on other pages (The resource identifiers stay the same without the transformation).

Any idea how to properly change a title on updating a page?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

8,393 views 6 6
Join discussion

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