Triggers
Overview
You can use workflow triggers to help automate your documentation process and flexibly respond to workflow events.
For example, you can use a trigger to automatically send an email when a page is submitted for review.
Triggers can be added to
listen for when a single workflow
event
occurscheck if the required
conditions
are met for the eventif met, then undertake one or more
actions
Triggers
Workflow triggers consist of the following elements:
Multiple triggers can be added to a workflow. A trigger for an event must include at least one or more actions.
Workflow trigger events | Workflow trigger conditions | Workflow trigger actions | |
---|---|---|---|
State actions Approval actions Notification actions | Page restrictions actions Publishing actions Requires the Comala Publishing app. Label actions The label-related actions are part of a gradual rollout of new features and might not be currently available in all instances. |
Adding a trigger to a workflow
A space administrator can add one or more workflow triggers to a custom workflow using either the visual editor or the code editor.
use the Add trigger dialog box in the visual editor.
The event and condition are chosen from a dropdown list of available options.
You can then include one or more Actions for the trigger using the Add Action option, such as the Set Message action.
The added trigger is automatically updated in the code editor.
You can also add a workflow trigger in the code editor, which includes JSON schema to help you.
You can toggle between the code editor and the visual editor. Changes made in one editor are automatically updated in the other editor.
The workflow triggers added to a workflow are listed in the visual builder.
Related pages