You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

projectdoc Toolbox

Service to prefix the title with an automatically incremented identifier.

For some document types there is a natural tendency to provide a unique identifier. This include documents that specify requirements or issues on an issue tracker.

To administrate these values by hand is a bit cumbersome. Therefore the projectdoc Toolbox provides some support to manage identifiers and add them to the title of generated documents.

Configuration

The space property named projectdoc.doctype.(doctype).auto-id-pattern controls for which doctype auto-increments for IDs is enabled.

Template Variable

The blueprint context is provided with the Auto Identifier (projectdoc.doctype.common.autoIdentifier) variable that contains the generated identifier.

Artificial Property

The projectdoc Toolbox generates an artificial property named Auto ID that contains the generated identifier.

Sequences

The sequences are stored as content properties with the parent page. This makes the generation process quick, even if there are more than a few hundred siblings.

 

Please note that sequences are not incremented atomically. In case of a sequence clash, a single identifier is used twice. These clashes need to be resolved manually.

If you need to adjust the value, please use the REST API for content properties.

Resources

Auto Increment
A feature of the projectdoc Toolbox to prepend a unique identifier to the title of a page.
Auto Identifier
A template variable for an auto-generated identifier.
Auto ID
The automatically generated identifier for a document. The services needs to be configured per doctype with a space property.
  • No labels