How to get root cause from an element using Formula script

  • 7006516
  • 27-Jul-2010
  • 11-Jul-2012


Business Service Manager 4.5
Business Service Manager 4.0


Root cause is the reason for an elements current condition. If you want to get the root cause details for use in an automation or operation, you'll need to use scripting.


This script fragment will print out all the reason and all contributors, elements, to the element's condition. The reason, which is the text description of the cause
var rc = element.getRootCause();

var contribs = rc.getContributors()

session.sendMessage("Reason: " + rc.getReason())

for(i=0; i < contribs.length; i++) {
  session.sendMessage("Contributor: " + contribs[i].dname)