Service Request template task

Service Request template task

Hello community , 
I have some service request template with task assing to it.
how in action scripts / javascripts can i get the list of task related to this service request template ?
The purpose is on submit,  set task as per resource form.

Regards, 
Martin

                  New to ADSelfService Plus?