3 Creating PagerDuty Tickets

You can create tickets automatically or manually. The following sections explain how to create both types.

Note:

At least one ticketing connector must be configured and enabled in order to create a ticket using either method.

Automatically Creating a Ticket

To automatically create a ticket in PagerDuty, you need to create a rule that specifies the event or incident condition on which the ticket should be created. In this rule, you also specify the ticket template to be used with the PagerDuty connector.

To create a rule to automatically create a ticket in PagerDuty:

  1. From the Enterprise Manager console, click Setup, then Incidents and Incident Rules.

  2. Click Create Rule Set. On the Create Rule Set page, enter a name and description.

  3. Click the Rules tab.

    As you proceed below, the wizard interface explains various rules and their usage. For detailed information, refer to the Using Incident Management chapter in the Oracle Enterprise Manager Cloud Control Administrator's Guide.

    • For events

      This is the typical option to choose to create a ticket for an event, such as a target down availability event.

      Click Create and select Incoming events or updates to events as a type of rule to create from the pop-up window. Follow the steps below to create a rule.

    • For incidents

      Click Create and select Newly created incidents or updates to incidents as a type of rule to create from the pop-up window. Follow the steps below to create a rule.

  4. While configuring the above rule under the Add Actions page:

    • For events

      Select the Create Incident check box. This makes the Create Ticket option visible. Then, select the Create Ticket check box. It will display the combo box to select Connector Type, name, and template.

    • For incidents

      You can use this option to create tickets based on incident attributes, such as priority 1 incidents or incidents based on fatal or critical severity.

      Select the Create Ticket check box. It will display the combo box to select Connector Type, name, and template.

    The following figures show the various Add Actions pages (events and incidents).

    Add Actions Page for Events


    Image shows the Add Actions page for an event rule.

    Add Actions Page for Incidents


    Image shows the Add Actions page for an incident rule.

  5. After selecting an appropriate connector and template, click Save.

The following process occurs after you create the event or incident rule:

  • A request is sent to the PagerDuty Connector when a incident is created due to an event that matches your rule.

  • The ticket is created or updated on the PagerDuty Ticket system.

  • In Enterprise Manager, the incident is annotated with a comment on the Updates tab to indicate that a ticket was created or updated, as shown in the following figure.
    Image shows an incident annotation.
    Additionally, the incident is updated with the ticket ID, ticket status, and ticket URL under the Incident Tracking section.

A ticket is updated if there is an existing active ticket for an incident. The following figure shows the ticket in the PagerDuty console.


Image shows a ticket in the PagerDuty console.

Manually Creating a Ticket

Perform the following steps to manually create a ticket:

  1. From the Enterprise menu of the Enterprise Manager console, select Monitoring, then Incident Manager.

    The Incident Manager page appears, showing all open incidents.

  2. Select any incident from the list in the table.

  3. In the Tracking section, click More, then Create Ticket, as shown in the following figure.
    Image shows the tracking section of Incident Manager
    .

  4. In the Create Ticket pop-up window, select a ticket template from the Template Name drop-down menu as shown in the following figure.
    Image shows the Create Ticket pop-up window.
    Click OK.

    If you do not see the desired template, you can add one using the emctl command. See Adding Ticket Templates.

If creating ticket is successful, the ticket ID appears in the tracking section for the incident. If the Web console settings are configured and enabled, the ticket ID appears as a link to the ticket page in PagerDuty.