Skip to end of banner
Go to start of banner

Pre-defined variables

Skip to end of metadata
Go to start of metadata

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

Compare with Current View Page History

« Previous Version 9 Next »

The following are available for variable substitution in the run and run-now macros:

  • $current_user_id will be replaced with the current logged in user's id or blank if not logged in
  • $current_user_name will be replaced with the current user's full name or blank if not logged in
  • $current_user_email will be replaced with the current user's email address or blank if not logged in
  • $current_user_timezone_id will be replaced with the current user's time zone setting id (example: America/Chicago). The default time zone will be used if the user is not logged in.
  • $current_user_timezone_offset will be replaced with the current user's time zone setting offset (in hours) from GMT (examples: -6, 5.5) The default time zone will be used if the user is not logged in.
  • $current_time will be replaced with the current date and time in the format specified by the dateFormat parameter
  • $page_title will be replaced with the page title of the page containing the macro
  • $page_id will be replaced with the page id of the page containing the macro
  • $page_url will be replaced with the full url to the page containing the macro
  • $page_tinyurl will be replaced with the tiny url to the page containing the macro
  • $space_name will be replaced with the space name of the page containing the macro
  • $space_key will be replaced with the space key of the page containing the macro
  • $confluence_home will be replaced with the path to the Confluence Home directory
  • $base_url will be replaced with the url to Confluence
  • $request_string will be replaced with url encoded request parameters

Content properties

Content properties can also be accessed. See content-properties.

Replacement

Replacement occurs for variables found within the body of the macro just prior to rendering the body. It cannot replace variables produced by the rendering process like data produced by downstream macros.

  • No labels