- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 11:20 PM
Hi Team,
I have one requirement on Incident Reports,
Incident reports should have Incident age,
for that i have created one custom field on Incident table i.e, Incident age(String field), and have written one Async Business Rule.
when i create new incident records, the custom field is updating as below attached snapshot, but after some time also the time is not changing.
Please help me to get the solution asap.
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2025 12:56 AM
if you want age to be seen irrespective of update then use calculated field for that and add the calculation there
so whenever list is opened the field will be calculated and age will be seen
Don't use BR then
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2025 10:01 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2025 08:13 AM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2025 07:39 PM
Thank you for marking my response as helpful.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2025 10:32 PM
I'm not sure how you configured that on your end, but I've tried the script below in my PDI, and it's working as expected. Please find it below.
(function calculatedFieldValue(current) { // Add your code here var created = new GlideDateTime(current.getValue('sys_created_on')); var today = new GlideDateTime(); var dur = GlideDateTime.subtract(created, today); return dur.getDisplayValue(); })(current);
Output:
Regards,
Siva