Custom function in trigger

Custom function in trigger

hello,

i need help,
first thing first i am just IT support, with surface knowledge to scripting and doesn't know much about it,
so the thing is, i create trigger in SDP cloud that applies to request, and for action i select custom function with this script as is
  1. requestObj.put("category",{"name":"Network"});
  2. requestObj.put("sub_category",{"name":"LAN"});
so the objection is, to change "category" & "sub category" on all created request with subject that contain a keyword,
is there any way to achieve this ?

                New to ADSelfService Plus?