Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

Excerpt
hiddentrue
nameRefined page card image
Excerpt

One or more conditions can be set for a trigger for a named event in the workflow.

Adding the "state" condition to a trigger listens for the trigger event that occurs when the document is in the state specified in the condition. Only one state can be set for the condition.

When the named workflow event occurs the trigger will check that the "state" condition is met, and if met set one or more actions.

If the "state" condition is used with "final" condition, the condition is evaluated as an OR condition. If "state" is used with the "initial" condition, the condition is evaluated as an AND condition.

JSON Condition

JSON Code example

Note

"state": "(string value)"

Code Block
"conditions":
[
	{"state": "Review"}
],

The trigger action will occur if the condition matches the provided "state".

  • specified state name must exist in the current workflow

  • only one state can be specified

  • only one "state": "statename" can be added as a condition for each event

Example on-approve event

Insert excerpt
"on-approve" event
"on-approve" event
nopaneltrue


JSON trigger conditions

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "jsontriggercondition" and space = currentSpace ( )