The CreatorCon Call for Content is officially open! Get started here.

When incident on-hold state changes state must automatically change to in progress

CarolMa6
Tera Expert

 

Hi, 

 

I need help with a solution: When an incident is on hold and the user changes its state, it should only be able to change to "In Progress." The user shouldn't have the option to resolve or close the incident directly; it must revert to "In Progress" first.

 

Regards

CarolMa

 

 

 

15 REPLIES 15

Ankur Bawiskar
Tera Patron
Tera Patron

@CarolMa6 

I agree with Atul here and would suggest to stick to OOB

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

CarolMa6
Tera Expert

Would building a metric to identify incidents that are resolved directly from an on-hold state make more sense? for reporting that is. 

Hi @CarolMa6 

 

The direct report is not possible in standard reporting, possible might be in PA. You can create a metric and check it.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

sunil maddheshi
Tera Guru

@CarolMa6 

You can write the before update business rule on incident

Condition: State is on-hold  AND State changes
Script:

if (current.state.changes() && current.state != 2) {  // "2" is In Progress
    gs.addErrorMessage("You can only change the state to 'In Progress' from 'On Hold'.");
    current.state = 2;  // Force it to In Progress
}

Please mark helpful/correct if this helps you.

@sunil maddheshi @Ankur Bawiskar @Dr Atul G- LNG @Nishant8 

 

Hi All, 

 

I set the default business rule to change the incident state to "In Progress" if it's on hold for "Awaiting Caller" if the user updates the assignment group or adds comments.

 

However, the rule isn't working correctly. When a user tries to put an incident on hold for "Awaiting Caller," it changes to "In Progress" instead for all incidents. 

 

Please help. No client script, script include, UI policy, or workflow was updated. How can I fix this?

CarolMa6_0-1740477500039.png

CarolMa6_1-1740477518488.png

CarolMa6_2-1740477536794.png