Set Date/Time Field depending on True/false Field on Incidents and Request form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2024 02:04 AM
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.
how to achieve this, and your solution will be much appreciated.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2024 10:08 AM - edited 04-21-2024 08:53 PM
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 .