User Activity

I have created a script for an inbound email action to generate an RITM. but only  RITM is generating and related SC task and SLA is not triggering . can someone please help me with this?