Removal of change task

slasher
Kilo Explorer

I have been tasked to remove change task and I marked the task I want to remove but The delete option under "Actions on Selected rows" has been deactivated. Is there any other way of deleting the task? The task is currently assigned to another user within the same group I belong to.

I asked colleagues and they advised that I must speak to the Group Coordinator and ask them to withdraw the task but so far no one is able to assist.

can you please assist in providing a solution?

Thanks

5 REPLIES 5

Michael Fry1
Kilo Patron

Did the Change Task get created from a workflow? or was it manually added?


If from a workflow, you'll won't want to delete them as the workflow might be expecting them to finish before the workflow can end.


If added Manually, ok to delete.



If you can't delete them, probably need a ACL on delete. The Delete Ui action conditions contain 'canDelete'.


Change was created manually.



I am quiet new to Service Now.



What is an ACL? Does that mean Access Control List? If that is the case who would be responsible for that?


Change Task was created manually and you have admin rights? If yes to both, you should have the correct rights to delete the change task.


preddy
Kilo Guru

Hi Elijah,



Use background script to delete that task.


var gr = new GlideRecord("change_task");


if(gr.get("pass change task sys_id")){


  gr.setWorkFlow(false);


  gr.autoSysFields(false);


  gr.delete();


}