How to automatically assign a number to a page?

I am building a knowledgebase and each article has its own distinct number. The format is K-0000. There is a requirement from our stakeholders that this number be automatically assigned so our authors don't accidentally assign the same number to multiple kb articles. This number appears in the title and in a table at the top of the article.

Any idea how to accomplish this in Confluence 4.0?

Thank you!

1 answer

Why don't you want to use PageID for that?

In admin area go to Edit Site Layouts » Page Layout and change page layout in a way that it will show somewhere "K-<Page ID>" page id I guess can be obtain through a helper variable (not sure), need to read some documentation.

We already have 850 articles and people know and refer to them by their number. I don't want to change them now, and I don't want to change the numbering convention...or have gaps in the number if the page ids were used for other spaces.

Ok, I see... Thus you might probably want to develop your custom plugin and got the autonumber for pages from a kinda global variable (thread safe, singleton, etc)...

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

865 views 2 13
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you