Bhuber (talk | contribs)
Created page with "Workflow triggers define when, how, and under which conditions a workflow starts. The page <code>Special:WorkflowTriggers</code> manages the triggers for existing workflows. To open the page, select {{Icon|bi bi-gear-fill|||}} '''Wiki actions''' > '''Editing''' > '''Workflow triggers'''. Workflow triggers and custom workflows are specific to each wiki. Each wiki can therefore have its own set of workflow triggers. All triggers share the following fields: {| class="wiki..."
 
Bhuber (talk | contribs)
No edit summary
 
Line 43: Line 43:


== Source editing ==
== Source editing ==
Users with technical knowledge can also edit workflow triggers in the source code (JSON syntax) and configure more detailed settings. The page <code>Special:Workflow_triggers</code> links to the corresponding page <code>MediaWiki:WorkflowTriggers</code>.
Users with technical knowledge can also edit workflow triggers in the source code (JSON syntax) and configure more detailed settings. The page <code>Special:WorkflowTriggers</code> links to the corresponding page <code>MediaWiki:WorkflowTriggers</code>.

Latest revision as of 11:18, 9 November 2026

SkySapphire

Workflow triggers define when, how, and under which conditions a workflow starts. The page Special:WorkflowTriggers manages the triggers for existing workflows. To open the page, select Wiki actions > Editing > Workflow triggers.

Workflow triggers and custom workflows are specific to each wiki. Each wiki can therefore have its own set of workflow triggers.

All triggers share the following fields:

Field Description
Name Identifies the trigger. Choose a unique name that makes the purpose of the trigger easy to recognize.
Description Explains to other users in more detail what the workflow does.
Workflow to start Defines the workflow that the trigger starts.
Initial data for the workflow Provides default data for the workflow. In a manual trigger, the user who starts the workflow can override this data.
Conditions Restricts the workflow to specific namespaces. If no namespace is selected, the workflow is available in the entire wiki.


Triggers based on an edit event can be restricted to major edits. With this selection, edits that a user marks as minor when saving the page do not trigger the workflow.

Types of triggers

On edit

This trigger starts a workflow each time a user edits a page. For this trigger, restrict the conditions to individual namespaces and to major edits. Inform users that the workflow exists and that they should mark minor edits as minor when saving the page. This prevents unnecessary workflows.

On page creation

This trigger starts a workflow when a user creates a page.

Manual

A manual trigger makes a workflow available in the More page actions menu. Users can start the workflow on a page at any time.

The conditions of a manual trigger can restrict the workflow to selected namespaces.

For example, a manual trigger for the Expert document control workflow can offer the workflow for page approvals in the Controlled Document: namespace only. The trigger can also assign the approval task to a specific reviewer group.

Source editing

Users with technical knowledge can also edit workflow triggers in the source code (JSON syntax) and configure more detailed settings. The page Special:WorkflowTriggers links to the corresponding page MediaWiki:WorkflowTriggers.