We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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

Danish Bhairag2
Tera Sage

Hi @Joshuu ,

 

What is the issue which u are facing in UI policy. Possible to share snip wht u have done till now?

I tried n it seems to be working for onLoad client script.

 

Thanks,

Danish

 

Hi @Danish Bhairag2 ,

 

If we use onload client script, it will give that alert whenever form loads isn't it?

 

I have just tried the below script which was given by Jayant. But the work notes is not getting mandatory before saving. also I need to look for reassignment count is greater than 3 condition.

Hi @Joshuu ,

Try using onChange client script, it will work

priyarao_0-1705342199135.png

 

It is not working @Danish Bhairag2 @Jayant_M .

 

Could you please check.

 

Joshuu
Kilo Sage

Hello All,

 

Could anyone please help me on this ?

 

Thanks.