I'm writing a trigger that integrates clearcase with JIRA and as a preop checkin trigger lets the user choose which JIRA issue the checkin is related to and then inserts info into both clearcase and JIRA in order to have traceability between them.
I want to add functionality to my trigger that the checkin comment is modified. I want to insert a string in the beginning of the comment. I've tried using the chevent command cleartool chevent -insert -c "MyComment" "MyFile.c". That command works when running it manually, but when running it in the trigger, the comment doesn't change. Cleartool returns zero (OK).
Any ideas what can be wrong or suggestions how to do things instead?