Workflow when ticket is closed through the portal

Workflow when ticket is closed through the portal

Hi!

Is there a possibility to trigger a workflow if the customer closes the ticket from the portal?

The background is, that I want to add a comment to the resolution if this case happens.

Thank you and best regards