Page and User references

Overview

These references provide information related to the current page.

Where can they be used?

You can use user references in the following macros (including, where applicable, parameters, Conditions and macro body):

They can also be used in Actions. See Event references for a full list of references that can be used in Actions.

Page References

ReferenceTypeEvent(s)Description

@modification@

dateall events

The date that this content was last modified

@page@

linkall events

A link to this piece of content

@parent@

linkall events

A link to the parent of the page (only for pages)

@created / posted@

dateall events

The date that this piece of content was created

@space@

textall events

Name of the space that this content belongs too

@title@

textall events

The title of this piece of content

@version@

textall events

The version number of this piece of content

@id@textall eventsThe id of this piece of content
@labels@textall eventsList of comma-separated labels of this piece of content


User References

ReferenceTypeEvent(s)Description
@author@
or @creator@
usernameall events

The username of the person who created the page or blog post.

Specifically, it returns the username of the person who clicked the Publish button when the page or blog post was first created.

@modifier@usernameall eventsThe username of the person who last changed this content.
@user@usernameall events

The username of the active user who triggered the event or state transition.

Using this reference can be unreliable outside of events, and also in cases where an event or transition is caused by state or task expiry.

@watchers@


all events

The usernames of everyone who is watching the content.

Example

A common use would be to prevent page creators from taking part in content reviews:

{workflow:name=Review}
   {state:In progress|submit=Review}
   {state}
   {state:Review|approved=Approved|rejected=In progress}
      {approval:Review|assignable=true|exclude=@creator@}
   {state}
   {state:Approved|final=true|updated=In progress}
   {state}
{workflow}