logo

NJP

Retrieve your missing Activity Date/Time stamps

Import · Mar 08, 2016 · article

Monitoring and identifying the time in which your team handles an incident, problem, or record is important to understand the circumstances and logic of activity. By default, the activity formatter is enabled on the Task [task] table and tables extended off the Task table, such as the Incident [incident] table. Starting in Geneva and UI16, the activity formatter shows updates in real time so you can see the latest information without refreshing the form. User presence enables you to see when other users are entering comments.

For users on select Fuji releases, you may notice that your activity log no longer shows the date and time in which the activity happened. You will notice the missing activity entries if you try to expand the activity details or if you attempt to open it in a new tab. This can lead to confusion among your team as they are not sure how long it has been in between responses and activity on a record. Here's the kicker, if you reload the form, make an update to the record, or expand and refresh, the activity date and time stamps come back. This leads users to think that the missing activity entries were just a fluke, only to experience it again later down the road.

image

Note: the activities are no longer just collapsed but entirely hidden and shouldn't be.

Good news is that if you are upgrading to Fuji Patch 7 Hot fix 6, Fuji Patch 8, or Geneva, your activity entries are retrieved (or preserved depending on what release you are coming from).

There are two ways to resolve this issue and retrieve your activity time stamps:

  • Upgrade
  • Create an onLoad global Client Script

If it is on your roadmap, you can skip the workaround and have this problem resolved in Fuji Patch 7 Hot fix 6, Fuji Patch 8, and Geneva. But, if upgrading is not an option for you at this time, you can use the following onLoad global Client Script to reload the missing headers after they are hidden. The client script must be wrapped within "addLateLoadEvent" to execute after the rest of the base system scripts.

function onLoad() {

  addLateLoadEvent(function() {

      jQuery("div.activity_header").show();

  });

}

For more information on this Known Error in Fuji, see After reloading or saving a record, the Activity Filter does not render Activity entries (such as th.... A few other users experienced this issue back in September. To join that conversation on how others resolved this issue, see Re: Activity now showing time.

View original source

https://www.servicenow.com/community/developer-blog/retrieve-your-missing-activity-date-time-stamps/ba-p/2284884