workflowparameter macro
Overview
The workflow parameter macro lets you create editable value references.
This feature lets you create configurable, portable workflows that can be used across spaces. Each space then has the option to use the default value set in the workflow or to use a custom value specified for that space only.
A workflow parameter can be configured to act as a placeholder for a type of data value, for example, a due date value; a Confluence user name(s) value ; a Confluence group name(s) value; a text string value; or a list of set option values.
Where to use it?
Optional.
One or more workflowparameter macros can be put in a workflow macro.
Must be placed before the state macro(s) in the workflow markup.
Workflow builder can be used to add one or more workflow parameters to a workflow.
Workflow parameters are useful placeholders for values such as content expiry dates or approval reviewers.
The values for these placeholders can be set differently for individual spaces or when the workflow is applied to individual pages without the need to edit the workflow itself.
Where can parameter values be edited?
Where you can edit a parameter value depends on the workflow parameter. The use of the updated parameter value depends on the workflow and how the workflow is applied
Space administrator
The space administrator can view workflow parameters and their current value in the space in the space Parameters screen:
Space tools > Document Management dashboard > Parameters - Space Tools
For a workflow parameter to be added to the Parameters screen, a default value must have been added to the workflow. The workflow parameters in a page workflow and a space workflow are on this screen.
A space workflow retrieves the value set in the Parameters screen only on a related workflow event, such as when the workflow is first applied to a page.
Changing the workflow parameter in the parameters screen
Does not change the default value set in a workflow template, or
Does not update the value used in an applied workflow unless a related workflow event occurs to retrieve the updated workflow parameter value
Users
Users can edit a workflow parameter value using the workflow state dialog box for a space workflow and a page workflow.
If a workflow parameter is configured as editable, a user can edit the parameter value using
The three-dot menu option in the workflow state dialog box
using the page tools Edit Parameters option
When a workflow is applied as a space workflow for the first time, if the workflow parameter is configured as editable, a user is prompted to add or confirm the workflow parameter value(s) when adding the workflow to content
If a workflow parameter value has been edited in the space Parameters screen, the new value is used by the workflow the next time the workflow action to retrieve the parameter value occurs.
Parameters
The workflow parameter must be defined with a unique name and the type of data used for its value. This can be done using the Parameters editor in the workflow builder
Options let you set a default value, add a description, and let a user edit the workflow parameter value.
Parameter | Required | Default | Notes | Ver |
|---|---|---|---|---|
unnamed first parameter | Name of the parameter. |
| ||
macro body |
| The default value for the parameter
|
| |
| The description for the parameter
|
| ||
|
| Should this parameter be editable at the page or blog post level?
If set to
|
| |
|
| Parameter type
|
| |
|
|
| Required if the parameter List options
|
|
Need support? Create a request with our support team.
