Add a workflow

Warning

Workflow is a technology preview feature and is disabled by default.

Note

To add a workflow:

  1. On the Swarm Workflows page, click the + Add Workflow button.

    The Add Workflow page is displayed:

     

    Add Workflow Page image
  2. Enter a name for the workflow.
  3. Optional: provide a description for the workflow.
  4. You are automatically added as the owner of the workflow.

    Optional: add more owners if required. This field auto-suggests groups, and users within Helix Server as you type (up to a combined limit of 20 entries).

    Important
    • A workflow must have at least one owner.
    • If you remove yourself as an owner, you cannot edit this workflow configuration later unless you have super user rights.
  5. Optional: if you want other Swarm users to be able to use this workflow, select the Shared with others checkbox.

    Tip

    Leave the checkbox unselected until you have proved that the workflow rules work as expected. This keeps the workflow private and stops other Swarm users using the workflow until you are happy with it. Once you are happy with the workflow, select the checkbox to share the workflow with other users.

  6. Rules:

    On commit without a review:

    This rule is applied when a changelist without an associated review is submitted from outside of Swarm.

    Select one of the following options:

    On commit with a review: This rule is applied when:

    Select one of the following options:

    On update of a review in an end state:

    Used to stop review content being changed for reviews that are in specific states. By default, the protected end states are Archived, Rejected, and Approve:Commit. The end states are set by the Swarm administrator, see end_states.

    This rule is applied when a changelist is added to a review.

    Select one of the following options

    Count votes up from:

    By default, all of the up votes on a review are counted for the Minimum up votes value set on the project/branch the review is associated with. Limit the up votes that are counted to just the members of the project the review is associated with by using this rule.

    This rule is applied when a user votes on a review.

    Select one of the following options:

    Tip

    For instructions on how to set Minimum up votes for projects and branches, see Project minimum up votes and Branch minimum up votes.

    Automatically approve reviews:

    By default, reviews must be manually approved. Enable automatic approval of reviews with this rule.

    This rule is applied when a user votes on a review, a required reviewer is added to a review, or a required reviewer is made an optional reviewer on a review.

    Select one of the following options:

  7. Click Save.

    Note

    The Save button is disabled if any required fields are empty.