Dynamically set the self-service action approval step
Dudi Elhadad
Add the ability to dynamically decide whether the self-service action will have an approval step or not.
How it will work - upon the action execution, a webhook can be sent to the customer's backend in order to run a logic that will decide if this specific action run needs to be approved by someone before executed
Kavita Pant
Adding some customer context: They're using a single SSA across multiple environments (int, stage, prod) and auto-approving non-prod runs using an automation, but there’s a short window where a user can manually click Approve before the automation kicks in.
This makes things harder to reason about and leads to a confusing state in non-prod, where approval isn’t actually intended. A native way would make the experience much clearer and more reliable.
Aaron Taylor
Hi! For anyone looking to accomplish this, please follow this guide: https://docs.port.io/actions-and-automations/define-automations/examples#approve-a-self-service-action-based-on-an-input-value
Matan Grady
With our new Workflows feature, this could be achieved with some tricks
Example use case - create a new service, and require approval only for certain teams
Implementation -
1) Create an action that gets the service and team as an input
2) The action is now awaiting approval
3) Trigger an automation that will auto-approve for certain teams
4) The team that requires approval won't be auto-approve and will wait for official approval