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.
- Creates a incident in Service Manager
- Gets a user from the CMDB
- Create a relationship between the incident and the user
- Gets a computer object
- Create a relationship between the incident and the computer, as related CI
- Create a relationship between the incident and the computer, as affected item
- Sends a platform event
Answered my own question and blogged it: http://sethisageek.blogspot.com/2011/11/add-affected-items-to-title-or.html
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.
Okay..thanks to your post I managed to do it 🙂
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.
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?
No, not in this blog post. But I have done it before at customers. Send me a e-mail if you need help to build a scenario.
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
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.
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