Conditions

Overview

Conditions allow you to specify additional prerequisite requirements for Triggers and some Transitions.

They are a set of optional parameters that can be added to the macros (listed below) to impose additional limits on when the macro is active.

In addition, due to support for Value References, you can even create custom conditions by comparing metadata values.

 

Basic example

{workflow:name=Conditions} {state:Editing|approved=Done|rejected=Editing} {approval:Review|group=confluence-administrators|assignable=true} {state} {state:Done|final=true|updated=Editing} {state} {workflow}

In the example above, only a user who is a member of the confluence-administrators group can review the content.

Compatible Macros

If a macro has a parameter with the same name as a condition, the parameter as defined in the macro takes precedence.

For example, user and group are parameters defined in the approval macro.

 

Conditions

Condition

Value

Notes

Ver

Condition

Value

Notes

Ver

Value Reference

A specific value. This must be a valid datatype for the value reference.

Does the value of a value reference match the specified value?

For example, @title@=<pagename> where <pagename> is the page title.

Conditions using value references can also be set when using a third-party app: