Value references allow you to add dynamic information and parameter values to your workflow markup – they are placeholders for information that's located somewhere else.

Each time the reference is encountered, for example in an Action or Condition, the value at that moment in time will be retrieved. This means your workflow can dynamically adapt to changing situations.

Reference types

There are several types of value reference, depending on where the information is stored:

Where can I use them?

Value references can be used in macro parameters, sometimes macro body, and even Conditions. However, actual availability depends on two factors:

  • The type of reference determines which macros it can be used in
  • The macro determines which parameters support value references

For a full list of places where value references can be used, see Conditions, Content and Value References. But remember it's the reference type and macro which determine the specifics.

If a value reference is requested then the value references are resolved in the following order:

1. Confluence Page Properties macro
2. Comala Metadata which includes workflow parameters with edit=true that have been saved and set-metadata
3. Communardo Metadata
4. Workflow parameters saved at the space level - without edit=true
5. Page references
6. Suppliers (ServiceRocket, Workflows, Metadata)

This order is important when there are conflicts in value reference names.

Basic example

In your workflow you might need to refer to the author of a piece of content. You won't know this information in advance. To get around this problem, you can use the @author@ value reference, which is one of the references that the Workflows app creates and updates automatically. When a macro that uses the reference is activated, the reference gets replaced with the username of the person who most recently created or edited the content.

{workflow:Value references}
      {send-email:@user@|Subject=Your recent @approvalname@ approval} 
         Thank you for approving @page@ which was created by @author@ 

All examples

See also

Workflow Authoring Guide:

Integration Guides: