Complete on schedule must be true on change form

rahul122
Tera Contributor

Hi all, 

 

The requirement is used to check whether actual end date/time is before actual change planned/date and mark completed on schedule check box must be true and the issue is intermittent it is working for some changes and not working for some 

 

 There is a after business rule with update  as true and condition as Status changes from work in progress 

                                                                                                       Planned change end date is not empty

                                                                                                       Actual end date is not empty 

                                                                                                       Task count is 0

 

and in advanced section i have updated the condition as current.work_end<current.end_date and script as current.setValue('u_compliance',true); but the issue still there 

 

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @rahul122 

 

Few things

 

1. After which state this BR is running?

2. Put different conditions 

1 actual end date less then Plan end date or plan Start date

 

 

Ootb actual end dates, Starr get populated when change move to implement state 

 

And 

Actual end date auto populated when change move to review state.

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

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

when state changes from work from progress to completed and task count is 0

Hi @rahul122 

 

Ootb there is no work in progress state on change. 

 

Seems it's customized state in your instance. 

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

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