How to Override default "active" status values for an incident?

frankh_
Giga Expert

I had almost walked this all the way down and I can't figure out the last part.

Currently in ServiceNow a "resolved" incident (State=6) or "Cancelled" (State=5) set active=true.   I started walking that down and I found a business rule "Task Active State Management" which sets the active flag.   That calls a script include "TaskStateUtil" which checks the table to see if a default is set on the table, and if not it uses a system default of 3,4 and 7 as inactive.

What I can't figure out - is what is the script include looking for on the table to override the default? Is it an argument in the collection?   Is it a dictionary override?   What would I need to change (without trying to re-write the OoB script include) to override those default values?   I am sure it would be obvious if I was better at reading scripts.

Thanks!

1 ACCEPTED SOLUTION

acretion
Tera Expert

Francis, you can control these by using a dictionary override on the task.state field and using different attributes.



For example the below line is used for planned tasks:


close_states=3;4;7,default_close_state=3,default_work_state=2



But the attribute for the rm_sprint override just says:


close_states=3;4


View solution in original post

1 REPLY 1

acretion
Tera Expert

Francis, you can control these by using a dictionary override on the task.state field and using different attributes.



For example the below line is used for planned tasks:


close_states=3;4;7,default_close_state=3,default_work_state=2



But the attribute for the rm_sprint override just says:


close_states=3;4