I would like to write a template, usable in any spaces, that creates a page with a unique incremental ID and one of a set of allowed prefixes. This UID/prefix would be used as part of the page title and in a page property table.
We have some historical data that needs to be imported in that format as well, therefore we cannot use the Confluence UID and would need something that has a REST API as manually uploading hundreds of documents is not feasible.
The page title format would be something akin to
${PREFIX}${UID} - ${TITLE}
Is that possible?
You will need to write code to replace the template functionality that leaves the page title open for the user, and replace the code that allows users to edit the title too.
I was thinking the title would become a macro with an editable field called "description" that would be appended to the prefix/UID. After all, what it is called could feasibly change but must retain the same prefix/UID.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could do something with a macro, but you would then
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.