workflow macro
Overview
The workflow
macro defines a workflow in your workflow template, and optionally defines page headers and footers, as well as content filters used when applying a workflow in space mode.
Where to use it?
Required – exactly one per workflow template.
The workflow
macro must be the first macro in your template.
It must contain at least one state macro or read-ack macro.
Parameters
Parameter | Required | Default | Notes | |
---|---|---|---|---|
macro body | There must be at least one The following macros can be put in the body of a
| |||
| Defines additional users who should be treated as admin users from the perspective of the workflow:
† Users added using this parameter must have space administration permission to remove sticky labels. | |||
| Name of the workflow:
| |||
FiltersIn space mode, these parameters can be used to determine which content the workflow should be applied to. | ||||
|
| Which types of content should the workflow be applied to?
| ||
|
| Should the purpose of the label parameter be inverted?
| 4.9 | |
| Which labels should this workflow be applied to?
| |||
| Should one or more labels be protected from removal?
| |||
User interfaceThese parameters facilitate the customisation of various elements of the user interface. | ||||
| Display a space-level page template in the footer of all pages and blog posts that the workflow is applied to:
See also: pagefooter macro | 3.1+ | ||
| Display a space-level page template in the header of all pages / blog posts that the workflow is applied to:
See also: pageheader macro, include-segment macro, set-message macro, workflow-instructions macro | |||
|
| Should the Progress Tracker be available in the workflow state dialog box?
See also: | ||
|
| If a page or blog post contains the Confluence status macro, should it be updated whenever the workflow state changes?
This is primarily for old templates that used the {status} macro as a mechanism to display workflow status in the page content. It is recommended to use the pagestatus macro instead. | 4.3.2+ |
The workflow macro is automatically added when creating a workflow using the workflow builder.
You can add or edit the workflow and its parameters using the editor options:
Expanding the Advanced section lets you to add values for the content, sticky labels, adminusers, updatestatus, and progresstracker parameters. You can also edit the header and footer parameter values in the page layout editor.
Example
{workflow:name=Example|content=pages|label=example|updatestatus=true}
{description}Example workflow{description}
{state:Editing}
{state}
{state:Done}
{state}
{workflow}
All examples
See: Examples
Related pages
Need support? Create a request with our support team.