Skip to main content
Skip table of contents

Variable Substitution

During a workflows transition, you may want to send an Email to your documentation team and include the the title of the page, the space that it sits in, or even the transitioner. While using actions that require user input in their configuration, it is useful to be able to access variables that are related to the current page.

How to use the variables

The syntax you need to use to access the variables are the same that you may use for a Velocity template e.g. ${page.title}

Here is an example configuration that uses the variables:

Available Actions

  • Modify Page Title

  • Webhooks

    • Can only be used in the JSON payload

  • Comment

  • Email

Available variables

Variable

Description

Example

page.title

The current title of the Confluence page

"Product Report"

page.id

The content id of the Confluence page

"67392084"

page.version

The current version of the page

"2"

page.url

The tinyurl of the Confluence page

"https://example.atlassian.net/wiki/x/45345tr "

page.lastUpdated

The timestamp of the last time the page was updated

"2020-04-17T12:45:59.308Z"

page.lastUpdatedBy.accountId

The id of the user who last updated the page

"5b9f8515c41ba41990290358"

page.lastUpdatedBy.publicName

The public name of the user who last updated the page

"Eric Cartman"

page.lastUpdatedBy.displayName

The display name of the user who last updated the page

"e.cartman"

space.key

The space key of the space the page sits in

"SUV"

space.id

The space id of the space the page sits in

"145435"

history.createdBy.accountId

The id of the user who created the page

"5b9f8515c41ba41990290358"

history.createdBy.publicName

The public name of the user who created the page

"Eric Cartman"

history.createdBy.displayName

The display name of the user who created the page

"e.cartman"

history.createdAt

The timestamp of the date the page was created

"2020-04-17T12:45:59.308Z"

transitioner.accountId

The accountId of the user who initiated the transition

"5b9f8515c41ba41990290358"

transitioner.publicName

The public name of the user who initiated the transition

"Eric Cartman"

transitioner.displayName

The display name of the user who initiated the transition

"e.cartman"

workflow.owner.publicName

The public name of the user who added the workflow to the page

"Eric Cartman"

workflow.owner.displayName

The display name of the user who added the workflow to the page

"e.cartman"

date

The current date as a unix timestamp

"1587131629639"

datetime

The current date as a UTC timestamp

"Fri, 17 Apr 2020 13:54:25 GMT"


Need support? We’re here to help 🧡

If you have any questions or would like to speak with us about Workflows, please don’t hesitate to reach out to our Customer Support team.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.