To add an automation rule, that will change the status of an issue to “done”, when an approval path is finished, you need to:
1.Go to Project Settings → Automation → Create rule
2.Add Trigger - Incoming Webhook
3.Save the webhook URL. It will be needed in the further step.
4.Add component - New Action
5. Select Transition issue. As Destination status select Done.
6. As an actor, select a user that has permission to close an issue.
7.Add a webhook step to an approval path definition. In our example, a webhook step will be the last step. In the Request field paste the webhook URL.