null


Skip to end of banner
Go to start of banner

approve trigger action

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Overview

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

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

"approve"

The trigger action "approve"sets an approved decision 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 approval is specified in the trigger action, the default approval is the approval in the state named in the trigger event condition. If there are multiple approvals in the state, the default approval is the first approval listed in the JSON markup.

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

 If adding the JSON trigger using workflow builder there is no need to include the opening "triggers": JSON markup notation, it is added automatically by workflow builder.

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

o

Trigger actions

Unable to render {children}. Page not found: JSON Trigger actions.

Related Pages

  • No labels