# Issue Change

The Unit Change webhook triggers:

- Issue created
- Issue updated.


## Summary

The following gives and overview of the fields in the json.

| **Field** | **Description** |
|  --- | --- |
| **id** | Unique identifier for the issue record. |
| **subject** | The subject or title of the issue. |
| **description** | A detailed description of the issue. |
| **status** | The current status of the issue. |
| **priority** | The priority level of the issue, often including a time-based action requirement. |
| **issueType** | The type or category of the issue (nullable if not specified). |
| **bookingReference** | The reference number associated with the booking related to the issue. |
| **bookingId** | The unique ID of the booking associated with the issue. |
| **unitName** | The name of the unit associated with the issue. |
| **unitId** | The unique ID of the unit associated with the issue. |
| **buildingName** | The name of the building associated with the issue. |
| **buildingId** | The unique ID of the building associated with the issue. |
| **guestStayName** | The name of the guest stay associated with the issue. |
| **guestStayId** | The unique ID of the guest stay associated with the issue. |
| **reportedByName** | The name of the person who reported the issue. |
| **reporterContactId** | The unique ID of the contact who reported the issue. |
| **reporterUserId** | The unique ID of the user who reported the issue (nullable if not specified). |
| **reportingTime** | The timestamp when the issue was reported. |
| **assigneName** | The name of the person assigned to resolve the issue. |
| **resolutionTargetDate** | The target date for resolving the issue. |
| **resolutionDeadlineDate** | The deadline date for resolving the issue. |
| **elapsedTime** | The time elapsed since the issue was reported, in seconds. |
| **type** | The type of record. |
| **message** | Any additional message related to the issue (nullable if not specified). |
| **startDate** | The start date related to the issue (nullable if not specified). |
| **endDate** | The end date related to the issue (nullable if not specified). |
| **userId** | The unique ID of the user associated with the issue (nullable if not specified). |
| **email** | The email address associated with the issue (nullable if not specified). |


## Example


```
{
      "id":106,
      "subject":"test email 2",
      "description":"test",
      "status":"CLOSED",
      "priority":"[2] Action in the next 48 hours - 2 days",
      "issueType":null,
      "bookingReference":"20210830-00004",
      "bookingId":1816,
      "unitName":"101 contract",
      "unitId":1,
      "buildingName":"Residential Building (GBP)",
      "buildingId":2,
      "guestStayName":"DEMO NAME 2",
      "guestStayId":579,
      "reportedByName":"DEMO NAME 2",
      "reporterContactId":6,
      "reporterUserId":null,
      "reportingTime":"2021-08-30 12:17:00",
      "assigneName":"DEMO NAME 2",
      "resolutionTargetDate":"2021-09-01 02:30:00",
      "resolutionDeadlineDate":"2021-08-30 12:17:00",
      "elapsedTime":"620601",
      "type":"ISSUE",
      "message":null,
      "startDate":null,
      "endDate":null,
      "userId":null,
      "email":null
}
```