How can I use Announcement Widget to display outages?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2022 09:22 PM
Hi Community,
There is a requirement to display the outages as announcements in service portal banner.
How can I display the outages as announcement in portal?
TIA.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2022 01:39 AM
Hello I got it then a script is required.
You need to write a BR on cmdb_ci_outage table after insert that an Announcmeen is created automatically with trype as banner
Script will be as below:-
var gr=new GlideRecord('announcement');
gr.initialize();
gr.type=52fa79f8e763320075c2a117c2f6a991;
gr.insert();
So above code should create the announcmeent automatically you can set the other mapping as your requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2022 01:46 AM
Can you please let me know what that sys_id "52fa79f8e763320075c2a117c2f6a991" represents?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2022 01:50 AM
It's of type banner try and let me know your result
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2022 02:02 AM
Yes, announcement is created. But the Name, Title,From were not updated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2022 02:09 AM
Hello Devi,
Yes because I have not wrtitten then in the script as I am not sure which field you will map to which field
Hope this helps. Please mark the answer as correct/helpful based on impact.