Delete a change in Draft state for ITIL users

riaz_mansuri
Kilo Guru

Hi,

Currently we do not allow anyone other than admin to delete changes.

I would like the ITIL role to be allowed to delete changes if they are in a Draft state and if the change has been opened by them.

Is this possible via a UI action?

If so can someone help in telling me how to come about this?

Thanks

1 ACCEPTED SOLUTION

Riaz,



  this can be achieved without scripting. I will recommend to use script-less approach, as it is easy for maintenance. Just change your state in the below screen shot


find_real_file.png


find_real_file.png


Thanks,


Abhinay




Please mark Helpful, Like, or Correct depending on the impact of the response


View solution in original post

7 REPLIES 7

Jon Barnes
Kilo Sage

You can do this with an ACL. check the ACL with name change_request, and operation is "delete".



You can tick the "Advanced" tick box and write a script to meet the criteria above.



http://wiki.servicenow.com/index.php?title=Using_Access_Control_Rules


Hi,



Thanks I am aware of this. I was hoping someone can help write me a script.



Thanks,


Riaz


answer = false;


if ((current.state = 'you need to put the VALUE of your draft choice option here' && gs.getUserID()==current.opened_by) || gs.hasRole('admin'))) {


  answer = true;


}



this is untested.   note you need to put the actual value of your draft choice option above.


Riaz,



    What script are you looking for? ACL script?



Thanks,


Abhinay




Please mark Helpful, Like, or Correct depending on the impact of the response