Live dashboards

martinkruml
Tera Guru

Hello all!

 

I have a requirement from the customer, for "Live" dashboard showing INC table, so if there is a new incident, it is for everybody to see it. 

 

Basically it would work like this - 

setup monitor screen in specific place on floor with projecting dashboard of "new incidents" which would refresh every 5 minutes for example. Is this something possible via plugin and more so, is it possible also for the person to connect it onto screen, without using credentials and accessing an instance, so it would be basically only "view"? 

It would serve as monitoring screen in a sense.

 

Thanks in advance for all the tips!

5 REPLIES 5

Ravi Gaurav
Giga Sage
Giga Sage

Hi @martinkruml 

ServiceNow does not provide a built-in auto-refresh for dashboards out of the box. However, you can achieve a live dashboard using alternative methods. 
You need to setup custom widgets..and call it on dashboard .. and Use the setInterval function in AngularJS to refresh incident data.

Let me know if you want dummy code .. I can help you

--------------------------------------------------------------------------------------------------------------------------


If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!

Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI

 YouTube: https://www.youtube.com/@learnservicenowwithravi
 LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/

Hello @Ravi Gaurav 

Thanks for the tip and dummy code would be helpful and very appreciated!

 

I have one question to it. How does the "user" access it? Given the fact, it should be external URL for dashboard, is that somehow possible to get that view like that or do I need to create specific user/role just for this dashboard - what about possible disconnection of the user after some time for example?

 

Thanks!

Hi @martinkruml 

dummy Code :-

Solution 1: Using a Service Portal Widget (Recommended)

Since dashboards don’t auto-refresh, creating a Service Portal widget that dynamically updates every few minutes is the best approach.

Steps to Implement:

  1. Create a Service Portal Widget

    • Navigate to Service Portal > Widgets
    • Click New and name it "Live Incident Dashboard"
    • Add a script to fetch new incidents and auto-refresh every 5 minutes
  2. Widget Client Script (Auto-Refresh Logic)
    Use the setInterval function in AngularJS to refresh incident data:

     
    function($scope, $interval, spUtil) { function getIncidents() { spUtil.update($scope); } getIncidents(); // Fetch data initially // Refresh every 5 minutes $interval(getIncidents, 300000); }
  3. Server Script (Fetch New Incidents)

     
    (function() { var gr = new GlideRecord('incident'); gr.addQuery('state', '1'); // New incidents gr.orderByDesc('sys_created_on'); gr.query(); var incidents = []; while (gr.next()) { incidents.push({ number: gr.getValue('number'), short_description: gr.getValue('short_description'), created_on: gr.getValue('sys_created_on') }); } data.incidents = incidents; })();
  4. Add This Widget to a Public Page

    • Create a new Service Portal Page
    • Add the widget to the page
    • Set the page to public (so no login is required)
  5. Display on a Large Screen

    • Open the public URL of the Service Portal page
    • Set browser to fullscreen (F11)
    • Use a browser extension to force full-page auto-refresh (if needed)
--------------------------------------------------------------------------------------------------------------------------


If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!

Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI

 YouTube: https://www.youtube.com/@learnservicenowwithravi
 LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/