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

Power Scripts - How to change a title page

Hi all,

I would like to be able to change the title of the current page by scripting.

How can I do that ?


Atlassian Confluence 7.9.3
Power Scripts 1.1.14

1 answer


basically it's very simple. The question is, how experienced you are with scripting.

The code to change the title of current page is:

title = "This is a new title";

This can be used in combination with a listener.

If you want to refer to a particular page from within the script, then you need to add some more code like this:

string spaceKey = "DEMO"; //the key of your space
string pageTitle = "This is the old title"; //the title of the page you want to change
number page = getPage(spaceKey, pageTitle); //the page will be accessed by getting its unique id
%page%.title = "This is a new title"; //title of the accessed page will be changed


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,658 views 7 30
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