Generate SCSM Incident with Opalis

I read a question on the forum about creating a incident in Service Manager with Opalis. The question was about all the fields you see in the incident form in Service Manger, but not on the “Create Incident with template” activity in Opalis. Many things we see in Service Manager as one form is a combination of objects and relationships between classes. Some more info about that in this post. Opalis handle this object per object and relationship per relationship. In the following policy I create a incident and create a relationship to a user and a computer. The computer is added as related CI and affected CI.

  1. Creates a incident in Service Manager
  2. Gets a user from the CMDB
  3. Create a relationship between the incident and the user
  4. Gets a computer object
  5. Create a relationship between the incident and the computer, as related CI
  6. Create a relationship between the incident and the computer, as affected item
  7. Sends a platform event

9 thoughts on “Generate SCSM Incident with Opalis

  1. Is it possible to get a relationship for a Configuration Item even though it has a max cardinality > 1? When Incidents are created with the SCOM Alert Connector, I’m trying to add the Affected Configuration Items to the Title so the support engineers don’t have to open the IR to see what system is affected.

  2. Hi, affected user is a relationship to the incident, so it needs to be created separate. If you need to monitor for new incidents you do that with the monitor object item, configure it to look for incident class new objects. Then any filter you need. After that you need to get relationships from the incident and get the affected user. Created a new incident and a new relationship with that user object.

  3. Hi Anders,
    Same question as Peter, just wanted to know if you have a static filter or getting some related objects directly from the Incident (for example the affected user or something like that)… for Example I need to monitor incident for certain classification category and get the affected user from the monitor to create a new incident form template .. how can i do it?

  4. Hi Anders,
    i see – just wanted to know if you have a static filter or getting some related objects directly from the Incident (for example the affected user or something like that)
    Peter Forster, MVP Virtual Machine, Austria

  5. Sure, sent me a e-mail and I can send you all detail. But in general, I use the get-object to get a Active Directory User. The filter is pretty easy, where username equals Will. Then on the next object I use the GUID from the get-object activity.

  6. Hi Anders,
    can you share the settings used to get the user object and getting the computer-object?

    Thanks
    Peter Forster, MVP Virtual Machine, Austria

Leave a Reply

Your email address will not be published. Required fields are marked *