Set Date/Time Field depending on True/false Field on Incidents and Request form

Rajkumar Bokken
Tera Contributor

Hi All,

 

We have a field called 'Escalated' on Incident and Request form I will create a new Field called Esclated Time and display the time spam when the ticket is Escalated or Marked as Escalated.

RajkumarBokken_0-1713258030833.png

how to achieve this, and your solution will be much appreciated.

 

Thanks

1 REPLY 1

Community Alums
Not applicable

Hi @Rajkumar Bokken ,

Write an After - Update Business Rule with below filter condition
'Escalated' field changes to true.

Write this script to populate Date & Time field

function executeRule(current, previous /*null when async*/) {

    if (current.escalated == true && previous.escalated == false) {

        current.escalated_time = new GlideDateTime();

}

})(current, previous);

 

Please mark as Accepted Solution if this solves your query .