How to add line into histroy from custom action scrip


I have written a custom action scrip which preveents some changes (resolve
on tickets). I can _Set back the old value with no problem.

I would like to show in result section some custom message - permission
denied and add to the history some custom message instead of default -
status changed.

Can I do this through Transaction object or somehow on custom action scrip?

Damjan Pipan