Business Service Status widget to show only services which has existing outages

Harika1
Tera Contributor

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

4 REPLIES 4

Allen Andreas
Administrator
Administrator

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!

Sulabh Garg
Mega Sage
Mega Sage

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.

find_real_file.png

 

 

 

 

Please Mark ✅ Correct/helpful, if applicable, Thanks!! 

Regards

Sulabh Garg

Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg

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 

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?