This site has moved to the integrated Appfire documentation and information site for our apps.

From February 2024 this site is no longer updated.

Take a look here! If you have any questions please email support@appfire.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Overview

The {workflowparameter} macro allows you to create editable Value References.

This incredibly useful feature allows you to 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.

Where can values be edited?

Depending on the parameter

For a workflow parameter to be added to the space tools Parameters tab, a default value must have been added to the workflow.

If the workflow parameter is editable, a user will be prompted to add or confirm the workflow parameter value(s) when adding the workflow to content.

(warning) A value for the workflow parameter added by the user in the workflow set up dialog box may only be available for use by the workflow after a transition occurs from this initial state.

(info) When adding a space workflow, a parameter reference value may only be available for use by the workflow after a workflow process, such as a transition, occurs. For example, the initial state should not include the use of the parameter reference value for a duedate or pre-assigned reviewers for approvals to avoid blocking your workflow. Alternatively, a space admin can choose to Initialize states when applying a space workflow. This will process the pages and the workflow parameter value will be available for use by the workflow in the initial state.

Where to use it?

Optional.

One or more {workflowparameter} macro can be put in a {workflow} macro.

Must be placed before the {state} macro(s).

Workflow builder can be used to add one or more workflow parameters to a workflow.

Parameters

ParameterRequiredDefaultNotesVer

unnamed first parameter
or name

(tick)


Name of the parameter.

3.0+

macro body

(tick)


The default value for the parameter

3.0+
description

The description for the parameter

  • plain text
  • can use any character set supported by your Confluence server – except some reserved characters

3.0+

edit


false

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

Tip: If set to true, the value of the parameter can be used as a normal Value Reference and can be accessed via the {get-metadata} macro.

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

Filter by label

There are no items with the selected labels at this time.

3.0.3+

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

3.0+
options(info)string

(info) Required if the parameter type is list.

List options

Filter by label

There are no items with the selected labels at this time.

3.0+

Events

The following Events are generated when page-level parameters are updated

  • pageparameterupdate

Examples

When the following workflow is first added to a space or page in a space, then a space admin can edit the value via Parameters - Space Tools.

  • the workflow parameters type=group and type=users can be used to define different users when adding the workflow to content
  • this can allow a workflow to be used across multiple spaces by different teams without having to change the workflow

A new value for the parameter added to the Parameters dashboard will be used when the workflow is added to the content.

{workflow:name=Parameters}
   {workflowparameter:Review Group|type=group}
      confluence-users
   {workflowparameter}
   {state:Test}
	  {approval:Review|group=@Review Group@} 
   {state}
{workflow}

(info) A default value needs to be added to the body of the workflow parameter for the parameter value to be editable in the space tools Parameters dashboard.

(warning) Editing the parameter value in the Parameters dashboard will not change the value used in a workflow that has already been added and applied to content in the space.

Adding edit=true allows end-users to edit the value at the page or blog post level, both in Page Mode and Space Mode.

{workflow:name=Parameters}
	{workflowparameter:Review Group|type=group|edit=true}
      confluence-users
   {workflowparameter}
   {state:Test}
	  {approval:Review|group=@Review Group@} 
   {state}
{workflow}

Both group and user type workflow parameters, accept comma-separated lists. These lists can be then used in approval conditions.

{workflow:name=Parameters}
   {workflowparameter:Review Groups|type=group}
      group-1,group-2,group-3
   {workflowparameter}
   {state:Test}
	  {approval:Review|group=@Review Groups@} 
   {state}
{workflow}

For a type=list workflow parameter, the list options are added using the list parameter.

{workflowparameter:OpDivision|description=Business Operating Division|type=list|options=hr,dev,marketing,finance,global}
      global
{workflowparameter}

All examples

See also

Workflow Authoring Guide:

User Guide:

Administration Guides:

  • No labels