Auto-Triage

Auto-Triage

If I create a business rule to auto triage come requests like to fill in the Category and sub-category based on a requester, I also set the request type to Service Request but all it will do is change the field and not actually convert the request to a Service Request, it stays as an Incident.

I found a script here which works but it means for every business rule that I want, I have to create a corresponding Trigger with this script if I want to auto-triage it to be a service Request.

//Input
template = "Template Name Goes Here";
//Logic
apiPrefix = "/app/" + context.get("instance") + "/api/v3/";
request = zoho.sdp.invokeurl
[
    url :apiPrefix + "requests/" + requestObj.get("id")
    type :PUT
    parameters:{"input_data":{"request":{"template":{"name":template}}}}
];

Just wandering if there is a fix or a way to not have to use both a trigger and business rule for each request I want to auto-triage.

Thanks