Set some states as inactive states
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2017 09:53 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2017 09:57 AM
i will suggest to create business rule to achieve this functionality.
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2017 10:05 AM
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2017 10:53 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2025 08:51 AM
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