change date on change the duedate field on incident

nunavathv
Tera Contributor

The date field should allow only future dates, and the state field should also change accordingly.

When a future date is selected, the state should automatically revert to the previous state it was in before the date change.

9 REPLIES 9

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @nunavathv

It involves two steps:

  1. Create a UI policy that ensures the due date is not earlier than the current date. Add an error message if the user selects a past date.

  2. Create a Business Rule that triggers as soon as the date is set to a future date, setting the state to 'In Progress'.

 

When a future date is selected, the state should automatically revert to the previous state it was in before the date change.

Atul: Need more details. 

 

 

 

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

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

current date is due date if the due date is changed to the future then the sate of incident should be the  previous sate(befor onhold)

Hi @nunavathv 

You can use a 'before' Business Rule to set the state, but I think you're aiming for something more complex. From what I understand, the state should be 'In Progress,' then 'On Hold,' and the state should return to 'In Progress' if the conditions are met. Is that correct?

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

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

yes