Business Service Status widget to show only services which has existing outages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2022 11:39 AM
Hi All,
I have a required where I have to display only services which have outages for past 5days and planned outage for next 5days.
Can any of you can guide me how to do that.
I cloned business service status widget and tried to change the query a bit but no luck.
Thanks in Advance!
Harika

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2022 12:30 PM
Duplicate post: https://community.servicenow.com/community?id=community_question&sys_id=d80df01edb4499d4fd8d2b691396...
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2022 12:31 PM
Hello Harika,
Change the server side code (#83 Line) for loop as shown in below code. It will start displaying the next 5 days as well as shown in below screenshot. You also need to change the logic of server side code starting with line #47 where glide record was applied on cmdb_ci_outage table and change the query condition.
Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg
Regards
Sulabh Garg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2022 04:18 AM
Hi Sulabh,
It displayed next 5days and tried to change cmdb_ci_outage query. But it only displays the date but not the outages tick marks and my major requirement is to show only services which have outages.
Thanks,
Harika
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2024 02:52 AM
Hi @Harika1 , I also have the same requirement. Did you get the answer for your query? Can you guide me like how to achieve it?