Versions Compared

Key

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

...

By including a trigger condition, the approve event in a workflow trigger can be constrained to listen for the approval event in a specific named state in the workflow, the workflow final state, or the initial state.

...

Excerpt
Code Block
"triggers":
[
	{"event": "on-approve",
	"conditions":
	[
		{"state":"Review"}
	],
	"actions":
	[
		{"action":"change-state",
			"state":"Published"}
	]}
]

The trigger action causes a change of state to the Published state.

  • "actions":[{ "action":"change-state", "state": "Published"}],

The trigger action occurs on the approve event but ONLY if the current state is the Review state

  • "conditions":[{"state":"Review"}],

This example fast-tracks a change of workflow state when a single approval decision is made in the Review state.

Trigger events

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