Versions Compared

Key

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

Overview

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

When the workflow trigger event occurs the trigger will check that any required conditions are met, and if met the "approve" action approves a named approval.

"approve"

Excerpt

The trigger action "approve"causes an approved decision to occur for a named approval if the provided parameters are valid.

  • action (approve
  • approval (string) Name of the Approval to be approved. If not specified, default approval will be used
  • user (string) Atlassian userID of the approver

❗️ no mandatory parameter - only the "approve" action is required. If no named approval is added, the action uses the default approval in the workflow. 

Code Block
"triggers":"
[
	{"event": "on-change-state",
	"conditions":
	[
		{"final": "true"}
	],
	"actions":
	[
		{"action": "approve",
			"approval": "Sign-off",
			"user":"5d52a37ef0f22a0da2d6f070"}
	]}
]

(info) If adding the JSON trigger using workflow builder there is no need to include the opening "triggers":" JSON  JSON markup notation, since It it will be added by workflow builder.

The Atlassian user Identification Number (userId) is visible in the URL when viewing the User Profile

o


Related Pages

List of trigger actions

Child pages (Children Display)
pageJSON Trigger actions