initial condition
Contents:
Overview
One or more conditions can be set for a trigger for a named event in the workflow. Adding a condition is optional.
Adding the Is Initial State as a True condition to a trigger ensures it only listens for events that occur when the current state is the initial state of the workflow.
The condition is a Boolean value—true or false.
When the specified workflow event occurs, the trigger evaluates the condition. If the condition is met, it executes one or more defined actions.
To limit the initial condition to a specific state in the workflow, combine it with the "state" condition. When used together, both conditions are evaluated using an AND logic, meaning both must be true for the trigger to execute.
JSON Condition
"initial":(boolean true/false)
JSON code
"conditions":
[
{"initial":true}
],Note
The trigger action occurs if the current state is the initial state.
The initial condition is constrained to a named state by including the trigger state condition
"conditions":[{"initial":true},{"state":"Review"}],
The initial parameter value is a boolean
"initial":true"initial":false
The initial state in Confluence Cloud is the first workflow state applied when a workflow is added to a document. It is the first state listed in the workflow template.
Example trigger code
{
"event": "on-change-state",
"conditions": [
{
"initial": true
}
],
"actions": [
{
"action": "clean-messages"
}
]
}Need support? Create a request with our support team.
