Endpoint
/api/v2/tenants/{tenantId}/incidents/{incidentId}/activitylog
Path Parameters
tenantId
string

incidentId
string

Query Parameters
startTs
string

To get activities performed on an incident within a certain duration, provide the start time and end time. startTs indicates the from date and time. Example: 2018-08-10T05:39:51 0000

endTs
string

endTs indicates the to date and time. Example: 2018-08-25T10:20:15 0000

isDescendingOrder
boolean

To list the data in a descending order (high to low), provide isDescendingOrder: true, otherwise provide false. By default, data is listed in descending order. Example: To arrange data from 30th Oct to 1st Oct, provide isDescendingOrder: true

Responses

OK

descendingOrder
boolean

endDate
string

nextPage
boolean

pageSize
integer

results
array

results.activity
results.changeLog
results.createdBy
results.createdTime
results.htmlLog
results.logType
startDate
string

totalResults
integer

{
  "descendingOrder": true,
  "endDate": "2018-10-30T05:26:27+0000",
  "nextPage": false,
  "pageSize": 9,
  "results": [
    {
      "activity": "Incident Updated notification sent by James",
      "ccList": "network.admin@myorganization.com,support@myorganization.com",
      "createdBy": {
        "email": "james.blake@myorganization.com",
        "firstName": "James",
        "lastName": "Blake",
        "loginName": "James_Blake",
        "phoneNumber": "800 123-1234"
      },
      "createdTime": "2018-10-29T07:17:13+0000",
      "logType": "TICKET_NOTIFICATION",
      "toList": "john.smith@myorganization.com"
    },
    {
      "activity": "Incident '#INC0000001798 Sample Incident Network Storage' updated by James",
      "changeLog": [
        {
          "attribute": "Identified On",
          "newValue": "2018-10-30 18:30:00",
          "oldValue": "2018-10-31 00:00"
        },
        {
          "attribute": "internal date and time",
          "newValue": "2018-10-30 18:30:00",
          "oldValue": "2018-10-31 00:00"
        }
      ],
      "createdBy": {
        "email": "james.blake@myorganization.com",
        "firstName": "James",
        "lastName": "Blake",
        "loginName": "James.Blake",
        "phoneNumber": "800 123-1234"
      },
      "createdTime": "2018-10-29T07:17:12+0000",
      "htmlLog": [
        "\u003cdiv class='ActivityLogDetails'\u003e\u003c/div\u003e\u003cp\u003eIdentified On changed from 2018-10-31 00:00 to 2018-10-30 18:30:00\u003c/p\u003e",
        "\u003cp\u003einternal date and time changed from 2018-10-31 00:00 to 2018-10-30 18:30:00\u003c/p\u003e"
      ],
      "logType": "TICKET"
    },
    {
      "activity": "Internal Response 'internal response' added by James for Incident '#INC0000001798 Sample Incident Network Storage'",
      "createdBy": {
        "email": "james.blake@myorganization.com",
        "firstName": "James",
        "lastName": "Blake",
        "loginName": "James.Blake",
        "phoneNumber": "800 123-1234"
      },
      "createdTime": "2018-10-29T07:17:11+0000",
      "htmlLog": [
        "\u003cdiv class='PostReply'\u003e\u003cspan class='icon-comment'\u003e\u003c/span\u003einternal response\u003c/div\u003e"
      ],
      "logType": "TICKET_INTERNAL_RESPONSE"
    },
    {
      "activity": "Incident Created or Updated notification sent by Annie",
      "ccList": "network.admin@myorganization.com,support@myorganization.com",
      "createdBy": {
        "email": "james.blake@myorganization.com",
        "firstName": "James",
        "lastName": "Blake",
        "loginName": "James",
        "phoneNumber": "800 123-1234"
      },
      "createdTime": "2018-10-29T07:13:21+0000",
      "logType": "TICKET_NOTIFICATION",
      "toList": "john.smith@myorganization.com"
    },
    {
      "activity": "Incident '#INC0000001798 Sample Incident Network Storage' updated by James",
      "changeLog": [
        {
          "attribute": "Identified On",
          "newValue": "2018-10-30 18:30:00",
          "oldValue": "2018-10-31 00:00"
        },
        {
          "attribute": "internal date and time",
          "newValue": "2018-10-30 18:30:00",
          "oldValue": "2018-10-31 00:00"
        }
      ],
      "createdBy": {
        "email": "james.blake@myorganization.com",
        "firstName": "James",
        "lastName": "Blake",
        "loginName": "James.Blake",
        "phoneNumber": "800 123-1234"
      },
      "createdTime": "2018-10-29T07:13:18+0000",
      "htmlLog": [
        "\u003cdiv class='ActivityLogDetails'\u003e\u003cp class='AttributeName' \u003e New response 'Network storgae unavailable. The tape backup system is down.' added.\u003c/p\u003e\u003c/div\u003e\u003cp\u003eIdentified On changed from 2018-10-31 00:00 to 2018-10-30 18:30:00\u003c/p\u003e",
        "\u003cp\u003einternal date and time changed from 2018-10-31 00:00 to 2018-10-30 18:30:00\u003c/p\u003e"
      ],
      "logType": "TICKET"
    },
    {
      "activity": "Incident Created or Updated notification sent by James",
      "ccList": "network.admin@myorganization.com,support@myorganization.com,superadmin@myorganization.com",
      "createdBy": {
        "email": "james.blake@myorganization.com",
        "firstName": "James",
        "lastName": "Blake",
        "loginName": "James.Blake",
        "phoneNumber": "800 123-1234"
      },
      "createdTime": "2018-10-29T07:11:42+0000",
      "logType": "TICKET_NOTIFICATION",
      "toList": "john.smith@myorganization.com"
    },
    {
      "activity": "Incident '#INC0000001798 Sample Incident Network Storage' updated by James",
      "changeLog": [
        {
          "attribute": "Subject",
          "newValue": "Network Storage in SJ Unavailable",
          "oldValue": "Network Storage"
        }
      ],
      "createdBy": {
        "email": "james.blake@myorganization.com",
        "firstName": "James",
        "lastName": "Blake",
        "loginName": "James.Blake",
        "phoneNumber": "800 123-1234"
      },
      "createdTime": "2018-10-29T07:11:34+0000",
      "htmlLog": [
        "\u003cdiv class='ActivityLogDetails'\u003e\u003cp class='AttributeName' \u003eSubject changed from Network Storgae to Network Storage in SJ Unavailable\u003c/p\u003e\u003c/div\u003e"
      ],
      "logType": "TICKET"
    },
    {
      "activity": "Incident Created or Updated notification sent by James from \u003cspan style='font-weight:bold;'\u003eTest(Custom)\u003c/span\u003e integration",
      "ccList": "network.admin@myorganization.com,support@myorganization.com,superadmin@myorganization.com",
      "createdBy": {
        "email": "james.blake@myorganization.com",
        "firstName": "James",
        "lastName": "Blake",
        "loginName": "James.Blake"
      },
      "createdTime": "2018-10-25T06:26:29+0000",
      "logType": "TICKET_NOTIFICATION",
      "toList": "john.smith@myorganization.com"
    },
    {
      "activity": "New Incident '#INC0000001798 Network Storage' created by OpsRamp API User from \u003cspan style='font-weight:bold;'\u003eTest(Custom)\u003c/span\u003e integration",
      "createdBy": {
        "email": "opsAdmin@myorganization.com",
        "firstName": "OpsRamp API User",
        "lastName": " ",
        "loginName": "opsramp_api_user"
      },
      "createdTime": "2018-10-25T06:26:27+0000",
      "logType": "TICKET"
    }
  ],
  "startDate": "2018-10-24T05:26:27+0000",
  "totalResults": 9
}