workflowparameter macro

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:

spacedocumentmanagementdashboard_parameters_twoaddedparameter.png

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

Parameter

Required

Default

Notes

Ver

unnamed first parameter
or name



Name of the parameter.

 

macro body

 



The default value for the parameter

 

description





The description for the parameter

  • Plain text

  • Can use any character set supported by your Confluence instance – except some reserved characters

 

edit



false

Should this parameter be editable at the page or blog post level?

If set to true, the value of the parameter can be used as a normal value reference and can be accessed using the get-metadata macro.

edit=true can also be required to be set upon transition to a state by setting this in the requiredparams list for that state.

 

type



string

Parameter type

  • string – text

    • Usually plain text, but can contain wiki notation depending on where the parameter value will be used

  • user – A single username or comma-separated list of usernames

  • duration – An ISO 8601 duration

  • group – A single Confluence group or comma-separated list of group names

  • list – A list of values to choose from – see: options parameter below

 

options

string

Required if the parameter type is list.

List options

 

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.