Popup an alert and make work notes mandatory when reassignment count is greater than 3 on incident

Joshuu
Kilo Sage

Hi All,

 

How to achieve this ?

Popup an alert and make work notes mandatory when reassignment count is greater than 3 on the incident form.

 

I have tried with ui policy but it is not properly working.

 

Please assist.

 

1 ACCEPTED SOLUTION

Hi @Dr Atul G- LNG ,

 

It is working as expected now. I have created an after update business rule with the below conditions.

 

1) Reassignment Count greater than 3

2) Reassignment Count Changes

3) Assignment Group Changes

4) !current.work_notes.changes()

 

And added a message in actions tab.

 

Thanks & Regards.

View solution in original post

17 REPLIES 17

Jayant_M
Kilo Sage

Hi @Joshuu , 

 

You can use onChange or onSubmit client script with the code as given below

{

alert("count is 3");

 

g_form.setMandatory('work_notes',true);

}

Please mark my response helpful if it resolves your issue 

 

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Joshuu 

 

I checked this, It is making work notes mandatory but after saving the record.. in this case you may need to change the Save UI action to add this.

*************************************************************************************************************
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]

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

HI @Dr Atul G- LNG ,

 

I am about to post this, what needs to be updated in the save UI action? also i have a condition where the reassignment count is more than 3.

You need to update in Save UI action which run on Incident table, so that it make Worknotes mandatory before save.

*************************************************************************************************************
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]

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