Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Teams
, (opens new window)

Comala Document Management for Data Center
Results will update as you type.
  • Overview
  • Get started
  • User Guide
  • Workflow Authoring Guide
  • How to's and tutorials
    • Mini tutorials
    • Add an approval counter to fast-track an approval
    • Add parallel approvals in a state
    • Who can be assigned, or assign users to an approval
    • Use attachment events in workflow triggers
    • Use blog post events in a workflow trigger
    • Using comment events in workflow triggers
    • Customize approval decision buttons
    • Dynamic page header using a metadata value and triggers
    • Exporting to PDF with K15t PDF Exporter
    • How can I fast-track a single rejection or a single approval decision
    • Using different styles in a trigger message notification action
    • Using Read Confirmation events in workflow triggers
    • Select the workflow that is applied using content labels
    • Using labels when applying a workflow in space mode
    • State expiry dates
    • Use metadata to increment composite major, minor, patch content version on an approval decision requiring a parameter
    • Using set-message and metadata to display different information for the draft and published content
    • Updating a mandatory reviewer for an approval assigned using a workflow parameter
    • Publishing to another space in the same instance - different-space publishing
    • Require Parameters on a state transition
    • Publish to another instance using advanced remote-space publishing
    • Add, remove and set page restrictions using a workflow trigger
    • Using a CQL filter in the document states report macro to report on grandchildren of a page
    • Make tasks disable a review
    • Adding page activity to email
    • Add a label to child pages
    • Restricting drafts to specific users using the add-restriction macro
    • Use metadata to increment a content version
    • Add workflow review information to a header for inclusion in a page export
    • Tutorials ...
    • Using workflow parameters to create reviewer teams in a space
  • Reporting Guide
  • Administration Guides
  • Developer Guides
  • Integration Guides
  • Migrating to Confluence Cloud
  • Release notes
  • Support
    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    Require Parameters on a state transition
    Updated Jul 02

    Require Parameters on a state transition

    1 Overview | 2 Example of use | 3 Workflow parameters | 4 Require parameters for a state

    Overview

    Using workflow parameters, you can extend the functionality of your workflows by including editable value references.

    These parameters can be set for a whole space or entered at the individual page level.

    When parameters are utilized for page-level editing, a state can be configured to require a user to set a value before transitioning from that state to a destination state.

    Requiring a parameter for the transition to a state to occur adds a warning emoji to the workflow popup transition option to this state. For a state, the approve or reject button for an approval in the state or a submit button for a state selection

    Before the transition takes place, a user is required to

    • Add a parameter value for the required parameter(s), or

    • Confirm a default workflow parameter value (if set when creating the parameter)

    The Require Parameters option is only available in the Edit State dialog box in the workflow builder if the workflow includes at least one workflow parameter. The parameter must be set as editable.

    Example of use

    We are editing the Workflows Exchange Editor and Staff Approval workflow to use the parameters feature.

    Using workflow parameters, we can:

    • Require users to input the appropriate review group when the workflow starts

    • Prompt the user to enter the review groups once the Draft state has been approved, but before it reaches the Ready state.

    Workflow parameters

    First, allow parameters to be set at the page level by adding edit=true to each workflow parameter.

    {workflowparameter:Reviewers|description=Reviewers group|type=group|edit=true} confluence-users {workflowparameter} {workflowparameter:Editor in Chief|description=User able to give final approval|type=user|edit=true} @user@ {workflowparameter}

    The workflow parameters can also be edited using the workflow builder.

    Choose each parameter

    • Check the Editable box to allow the workflow parameter values to be edited by a user

    With this change complete, the user creating the page is prompted to set the parameter values when applying the workflow.

    Require parameters for a state

    Second, add the parameter prompt for the Ready state transition by adding a requiredparams attribute to the Ready state definition.

    {state:Ready|approved=Reviewed|rejected=Draft|requiredparams=Editor in Chief,Reviewers}

    This can also be done by editing the Ready state using the workflow builder:

     

    Now, the workflow state dialog box in the Draft state displays a warning icon on the Submit button.

    The user who transitions the workflow from Draft to Ready is prompted for the parameter values.

     

    The required parameters for entering a state will only be prompted if a user is performing a workflow action, such as approving or rejecting an approval, or selecting a destination state in a submit or select transition.

    Once a parameter value has been set, its valid is not prompted again unless the saved value is removed.

    If you want to prompt the user to enter a value every time the workflow resets, you can add a trigger with a set-metadata action macro to clear the relevant metadata value for the parameter.

    If a state is transitioned by a trigger, like a page update, the required parameter check is not carried out.

    See also

    User Guide

    • Require parameters (workflow state dialog box)

    Workflow Authoring Guide

    • Transitions

    • state macro

    • workflowparameter macro

    Need support? Create a request with our support team.

    Copyright © 2005 - 2025 Appfire | All rights reserved.

    {"serverDuration": 15, "requestCorrelationId": "51e43899e62049bfb5281a320b40df51"}