Cireson Partners, Customers and Community members share your customizations and examples here to help benefit the community as a whole to earn Kudos and badges.
Cireson does not and will not support or maintain these enhancements, extensions, and scripts.
For Team Cireson uploads click here.
Portal Task - Enable "View SCOM Alert"
The following crazy simple custom.js will add a new "View SCOM Alert" task on Incidents that have the Incident viewModel containing the AlertId. Which is to say you'll only see this task on Incidents that were actually created from SCOM! Finally, when clicked it will take you to the configured SCOM portal as defined within the "viewSCOMAlert.js" file.
NOTE: This is currently built around the stock SCOM Silverlight portal. I haven't tested this against SquaredUp or Savison, but chances are incredibly high this will not work for them. I can't recall what those URLs format is, but I can't imagine this would be all that difficult to adapt.
We just received and implemented SquaredUp, and I was able to use your code which is FANTASTIC.
Only need to change one line, the url variable, for SquaredUp integration.
See new line below (line 13 to replace url variable):
My reference to easily find this was with this: https://github.com/squaredup/Scripts/blob/master/New-SCOMHtmlNotificationChannel.ps1 - as they essentially build the URL. Only necessary item was to remove the URL encoding to get to the line above that works flawlessly.
- var url = portalURL + "/drilldown/scomalert?id=" + alertID;
These URL's target the SCOM 2016 Web Console, so your mileage may vary with 2012.
It is not shown here, but you would only want to load these tasks if the form class is the SCOM Alert Incident, rather than just any Incident.
The other two tasks are particularly helpful later on, if the alert has been groomed out, or if you just want to quickly get some more context around the alert.