Standard variables

The standard variables are variables that you use in your scripts to work with the Confluence objects.

VariableRead OnlyDescription
spaceNoRepresents space key the page belongs to (returns empty string if space is missing).
authorNoRepresents user key of the page author.
titleNoRepresents page title.
versionNoRepresents page version.
contentNoRepresents page content as a string.
attachmentsYesRepresents page attachments (file names).
createdNoRepresents page creation date.
idYesRepresents page id.
parentYesRepresents parent page id (returns -1 if parent page is missing).
updatedYesRepresents page last modification date.
watchersNoRepresents an array of users watching the page (usernames, string[]).
labelsNoRepresents an array of page labels (string[]).
tinyLinkYesRepresents a tiny url of a page (e.g. http://localhost:1990/confluence/x/AgAZ).

Example usage:

Following script takes page title, ensures that the page actually exists and returns basic currently supported standard variables.