Use case: Approval start upon transition
This document will guide you to automatically start Approval Path on any issue that will go through a particular status transition.
This will help you skip the hassle of manually starting the approval on every single issue.
Use case
There is a particular approval that is required for every single issue created on a project, when an issue is created, in the “backlog status” , it must be approved before being transitioned to the “In progress” status.
We can add a third status “Waiting for approval” and use this status as a trigger to initiate approval path.
Therefore any issues that will transition to this status, will start the approval path.
Pre-conditions
Have the status you wish to use as the trigger (for example: Waiting for approval)
Create an API key Documentation
Make sure the “Create approval for issue” privilege is granted
Automation steps
Navigate to the project settings
Select the “Automation” tab
Click on the “Create rule “ button
Search for the “Issue transitioned” trigger
Select the trigger
There two field of “From status” and “To status” select which status change should trigger the action to be taken, in this case. (For example: Backlog -> Waiting for approval)
Click on the “Save” button
Click on the “New action” button
Search for “Send web request” action type
Select the action
Fill in the data
Web request URL
https://app.approval-path.com/webapi/approvals/{{issue.key}}
Headers
Authorization
Bearer + your API key value (for example:
4mbmqXaw4cATK9BMXblqFiD6ei3q4vSdsYVGQ9CKFsrf
)
HTTP method
POST
Web request body
Custom data
Custom data
{ "definitionId": "id of approval definition you want to start", "summary": "Demo transition trigger" }
*Definition id can be obtained from the definition page
Click on the “Save” button
Select a name for this Automation
Click on the “Turn it on” button
That is all!
Now whenever the issue is transitioned (in this case from Backlog to Waiting for approval), approval path will start automatically.
Here is the result: