Changing page titles through ScriptRunner without breaking links

Florian Wehner March 24, 2020

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
AUG Leaders

Atlassian Community Events