Customizing Ticket Templates
4-6
Connector Installation and Configuration Guide
Figure 4–1 Modifying HP Service Manager Template
The XSL has two primary branches: Create Incident and Update Incident. This
example only modifies the first branch.
3.
Navigate to the code in the incident create block as shown above. Uncomment the
Company element as shown below and add the fixed text of AJAX.
<m:Company>AJAX</m:Company>
This instructs the connector framework to supply the value of
AJAX
in the Service
Manager field value of
Company
.
4.
Save the file and register the template as described in
Section 3.1.1, "Registering
Ticket Templates"
.
5.
The template is now ready to use in notification rules or as a template for manual
ticket creation. When used, it behaves the same as the out-of-the-box template
copied, except when a Service Manager incident is created, the incident company
will be AJAX. Of course, AJAX must be a valid Service Manager company or the
request will fail.
This is a simple example of customizing ticket templates. Complex XSL code can be
written to manage the mapping of data between the Enterprise Manager Alert and the
Service Manager Incident Ticket.