link relate request ticket via scripting

Hi,

I'm trying to link a request ticket to another request ticket via javascripting. kindly advice how should i go about to do it. I had manage to create a new request ticket with reference to the programming guide, but I didn't saw any doc on how to related to another ticket via scripting.