please help how to show banner popup outage details incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2024 07:53 AM
Kindly help me on show outage popup on incident form ,i have created businessrule to create Outage record
1. Open up a new Incident, fill out all needed form fields, and click Save.
2. Modify the Impact and Urgency so that Priority = 1 - Critical or 2 - High. Click Save.
3. A banner at the top of the incident is visible that says:
Outage #[Outage Number] has been created for [Configuration Item] since this is a [Priority] incident.
4. Scroll down to the Related Lists area and to the Outage tab. Click on the Outage tab.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2024 01:50 AM
Hi @Swati k1 ,
Please follow below steps:
1)Create a formatter : ssytem UI >Fomatter > create new as below:
2)Create ui macro as below: system UI> UI Macros
UI macro name should match with Formatter name
3)add below code to fetch the incident and outage deatails using jelly script:
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<g2:evaluate var="jvar_elements" jelly="true" object="true">
var gr = new GlideRecord("incident");
gr.addQuery("table", current.sys_class_name);
gr.addQuery("number", current.number);
gr.addQuery("priority", "1");
gr.query();
if(gr.next()){
//get outage number
var out = new GlideRecord("task_outage");
if(out.get("task", gr.sys_id))
var number = "Outage:"+" "+out.outage.number+" "+"has been created for:"+" "+ gr.cmdb_ci.getDisplayValue()+" "+ "since this is a:" + " "+gr.priority.getDisplayValue()+" "+ "incident:"+" "+gr.number;
}
</g2:evaluate>
<h3 style="color:red;">$[number]</h3>
</j:jelly>
You can adjust the logic if field names are different
4)Add this fomtter to the incident form
open incident form and configure >Form design >add the formatter on the top of the form
5)Output:
Hope this helps.
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2024 09:57 AM
Hi @Swati k1 ,
did my response help you? if so,
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025