Update the state of sc_task
I am doing some clean up, I need to close sc_tasks depending on some conditions with following script which is not updating the record. var task = new GlideRecord('sc_task');task.addEncodedQuery('addEncodedQueryhere');task.query();while (task.next(...

