The CreatorCon Call for Content is officially open! Get started here.

Script to determine age of a ticket

reeset
Kilo Contributor

Hi everyone.   I am happy you. All are here and can   hopefully assist me

i tried this through inactivity monitor but it doesn't work correctly. So I would like to use another method like scripyin and have the scripting trigger an email

The parameters are.   Check ll incidents if the incident is 30 days or more and still open,   trigger an email to go out to the assignee of ticket.   This should be done for all open, ain progress, pending or assigen.   Got all tickets that are found an email is sent to the assignee   and manager

i I don't want to use inactivity monitor.   I would like to use a script which fire off an email

does anyone already have something like this or able ti share how this Cavan be accomplished

THANK YOU,,,

24 REPLIES 24

reeset
Kilo Contributor

Hi Edwin, Here is the sceenshot with unresolved up at the top.


find_real_file.png


Hello Terry,



I made a little change to the script of the business rule in my first post. Could you please make sure that you make the change on your business rule too? I changed the name of a variable from gs to gr. (gs.eventQueue and gs.daysAgo should stay the same)



It seems that the events are working fine. Can you please share an screenshot of the email notification?



Thanks.


Hi Edwin, I changed the one script as you suggested.   But it's still not working.   I wll send you a screen sot of what was changed


Here is the notification screen


find_real_file.png



find_real_file.png


reeset
Kilo Contributor

find_real_file.png


Terry,



I just made another change to the script code, can you please update your business rule with the new code, I think it should work now.



Thanks.