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

Amit Verma
Kilo Patron
Kilo Patron

Hi @mania 

 

Instead of using Script, you can do it via Actions. Refer below snip and try to configure your business rule like to see if it works as expected. Remember to uncheck Advanced checkbox :

 

AmitVerma_0-1706788437672.png

 

AmitVerma_1-1706788465754.png

 

Thanks & Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.

Sonam_Tiwari
Kilo Sage

 

Yes, no need of script actually.

 

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

@Sonam_Tiwari @Amit Verma 

I have tried with script and without script but its creating duplicate records. How to resolve this issue. can anyone please help.

mania_2-1706788995317.png

 

mania_1-1706788977269.png

 

mania_0-1706788918650.png

 

Thanks!

Mania

Please check that you don't have any other business rule with the same set of actions. Also, check if the business rule is not getting called twice.

 

Also, you can run the Business rule debugger to check what is actually happening.

 

One more observation, I can see 2 incidents with the same incident number. Is it expected ?


Please mark this response as correct and helpful if it assisted you with your question.

mania
Tera Contributor

@Amit Verma 

 

After creating that business rules only it showing duplicates with the same number.

I have verified remaining BRS but not found any.

 

Thanks!

Mania