You can use this action in a workflow trigger to approve a workflow approval. This action completes the approval, even if there are pending assigned reviewer decisions or a reviewer rejection decision.
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.
If adding the JSON trigger using workflow builder visual editor, 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.