The "Close Task" form button on an SCTASK puts the task into "On Hold" state.

Zig1
Kilo Expert

Hello Everyone,

When I click the "Close Task" form button on an SCTASK, it puts the task into "On Hold" state. I've checked the UI Action, and the script looks fine. I've checked the Business Rules, but I can't seem to find where this state is being set? Is there somewhere else I should be looking?

Any help is much appreciated.

find_real_file.png

 

find_real_file.png

 

find_real_file.png

 

 

 

1 ACCEPTED SOLUTION

For Incident and scan task they are OOB and their value as 3 is also OOB

find_real_file.png

So apart from that you can change for all the other.

Thanks.

Please mark answer correct/helpful based on  Impact

 

View solution in original post

7 REPLIES 7

Sai Kumar B
Mega Sage
Mega Sage

@Zig 

By OOB generally, you shouldn't have the onHold state in sc_task table records unless you add custom state, Please check your "state" dictionary choices back-end values if there are any conflicts

https://[INSTANCE NAME].service-now.com/sys_dictionary.do?sysparm_nostack=true&sys_id=e56db0c76d2220...

Saurav11
Kilo Patron
Kilo Patron

Hello,

The most probable reason to me looks like the On Hold option also has the value 3 in the backend.

Please click on configure Dictionary for state and check the value of On hold.

Please mark answer correct/helpful based on  Impact

Hi Saurav,

I checked the dictionary as you said, and found the On Hold value for sc_task is 3.

Please see the screenshot below

 

find_real_file.pngfind_real_file.png

 

 

 

 

Hello,

Yes so you will have change the value of on hold to something else.

But before doing that once check if there are any scripts which are using this value of on hold. As it is a custom state i do not think you will have too much dependency but still better to confirm once.

Once confirmed you can change the On hold state value

Please mark answer correct/helpful based on  Impact