The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Changing page titles through ScriptRunner without breaking links

Florian Wehner
Contributor
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events