The Zurich release has arrived! Interested in new features and functionalities? Click here for more

What to use in closing all open tickets?

zaxjun
Tera Contributor

Hello All, 

 

Good day!

 

I would like to ask your suggestions/recommendations on what to use in closing all the open tickets which are more than 30days already.

 

1. Is it the client scripts? If it's client script, what type of function? Onload, onchange?

2. Should I have a scheduled job to check/run everyday if there are still open tickets more than 30days?

 

Any suggestions and recommendations?

 

Thank you!

1 ACCEPTED SOLUTION

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @zaxjun 

 

You can use the Flow designer which is low code and if you want code, use schedule job.

 

Flow Designer

Trigger

Schdule

 

Action

Look up for records where incident open more tan 30 days

Logic

For each 

Action

Update record

State = close

Resolved note = xxx

Resolved code =yyy

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @zaxjun 

 

You can use the Flow designer which is low code and if you want code, use schedule job.

 

Flow Designer

Trigger

Schdule

 

Action

Look up for records where incident open more tan 30 days

Logic

For each 

Action

Update record

State = close

Resolved note = xxx

Resolved code =yyy

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Thanks Kilo it works for me.

Prathamesh G
Kilo Sage
Kilo Sage

Hello @zaxjun,

 

You can use the Scheduled job which will runs on a daily basis and will check the open tickets which are older than 30 days. And using the scheduled job, you can closed those tickets automatically.

 

If the above solution resolve your issue, Please mark the solution as Accepted Solution and also mark it as Helpful.

 

Thank You. 

Prathamesh

Thank you but I think the Flow design suggested by Kilo is good for me.