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

I want to add a info message (Please fill the time worked before updating the ticket) and abort the

mania
Tera Contributor

Hi,

 

1.When agent opens the incident, time should not start automatically.- I have did this glide.ui.timer.started is false then it is stopped running automatically.

2.when anyone should be able to manually start the timer and the timer starts. If the user/agent is updating the ticket, and the time worked is 00:00:00, add a info message (Please fill the time worked before updating the ticket) and abort the action. - I have tried BR rule but that is not triggering to Incident form.

Can anyone help on this code. It will be helpful.

mania_3-1706782114812.png

 

mania_0-1706781957401.png

mania_2-1706781990367.png

Thanks in Advance!

 

1 ACCEPTED SOLUTION

Sonam_Tiwari
Kilo Sage

@mania ,

 

Remove the 3rd and 6th line. Anyway you have checked that in the condition section.

Consider indicating the response as helpful and marking it as correct if it meets your needs.

View solution in original post

14 REPLIES 14

I hope you have created a single business rule only as I just reproduced your requirement on my PDI and it is working as expected. 

 

Also, are you testing it on an existing incident or on a new incident. For existing incident, if you have time worked already available and you restart the timer, the new time worked is captured as a separate record in the time worked related list.

Thanks and Regards
Amit Verma

@vermaamit16 

I have tested with existing record and updated time worked timer its showing only one record but once I creating new record and updated timer its showing duplicate time worked and records with the same number also.
I want only once record create it should show only one record under time worked tab and also one incident record should be created .

mania_0-1706791568074.png

mania_1-1706791667339.png

 

Thanks!

Mania

Tested this by creating a new record as well. It is working for me. Can you please share your business rule config screenshots ?

Thanks and Regards
Amit Verma

@vermaamit16 

 

Can you please find the BR config which I attached Screensorts.

 

mania_0-1706792842723.png

mania_2-1706792871111.png

Thanks!

Mania

Can you please check if the Advanced Checkbox is unchecked or not. It should be unchecked.

 

AmitVerma_0-1706855150912.png

 

Thanks & Regards

Amit Verma

Thanks and Regards
Amit Verma