Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2017 10:44 PM
Try this
Create a new field of type duration on task table. You may name it as 'Age'.
Write an After-Update Business Rule with condition 'When State Changes To Resolved'
Script:
calculateAge();
function calculateAge(){
var datedif = gs.dateDiff(current.sys_created_on,current.resolved_at);
current.u_age = datedif;
current.update();
}