Fix script to close the RITM and Associated REQ and SCTASK

Rakesh40
Tera Contributor

Hello All,

 

Can please someone help me with the Fix script to close the RITM records which are active and not updated before one year ago. 

i need to fetch data encoded query on RITM.

"active=true^sys_updated_on<javascript&colon;gs.beginningOfOneYearAgo()"

I need to set the RITM state as Closed Automatically and also associated REQ and SCTASK state as Closed Automatically.

 

Thanks