Set some states as inactive states

raed1
Giga Contributor

Hey guys,

I have a table extended from the task table and have a few new states that I have added to it. Is there a way to set these states as inactive states without setting up a business rule, so that whenever one of these states is selected, the active field is automatically switched to false?

Thanks,

Raed

5 REPLIES 5

sachin_namjoshi
Kilo Patron
Kilo Patron

i will suggest to create business rule to achieve this functionality.



Regards,


Sachin


Thanks for your reply Sachin. Just curious though. How are the current states on the task table set as inactive right now. Do they already have a business rule in place for it?


Hi Raed,



TaskStateUtil script include is used OOB to set task state attributes.

Please check below



http://wiki.servicenow.com/index.php?title=TaskStateUtil#gsc.tab=0



Regards,


Sachin


Abhishek Gupta5
Tera Contributor

I hope the below option helps,
Navigate to Config Dictionary on your state Field --> Go to Dictionary Override --> (Check if you have dictionary override on your required table) > Create new or open the existing one and add your custom choices to closed states 

Ex :default_work_state=2,close_states=6;7;8,default_close_state=7