In order to execute an Automation Task directly from a ticket, you can link your Automation Service Workflow to a Ticket Process Workflow.
After you publish your Automation Workflow as a Service, you can connect the Automation Service to your ticketing process.
...
When a new ticket is created which is linked to an Automation Workflow, the tasks performed by Automation are updated in the Activity History section of the ticket (this is true only if you design your Automation Workflow to execute an operation to update the worklog of your ISM ticket).
Once the workflow execution is completed, the Automation logs are also available as a worklog. Click on the View Automation Logs to view the logs.