First I thought it's easy: create a custom function and return a bool:
bodytext = requestObj.get("description");
boolVal = bodytext.containsIgnoreCase("Test1234");
return boolVal;
Of course its not that easy, because a custom function in a business rule cant return a bool, but a map. And I have no idea what that means.
So maybe someone could be so kind to walk me through one time how to create a business rule that checks if there is a special content in the script (it will be several strings I test for and any of them existing should return true) and if yes, it will resolve the ticket.
Im also fine with a website that explains Deluge and how to use it in business rules. I can teach myself a new scripting language, but on the Deluge help there are very few standard varables. I had to ask the support how to get the text on a ticket in a varable since I could not find that anywhere. Its
requestObj.get("description")).
Thank you so much
Joachim