URL

GET https://{api-url}/api/v2/tenants/{tenantId}/tasks/{taskId}/activitylog

Sample URLs

https://{api-url}/api/v2/tenants/client_4/tasks/TASK0000001803/activitylog?startTs=2018-10-29T12:26:27 0000&endTs=2018-11-02T12:26:27 0000&isDescendingOrder=true

Parameters

All parameters are optional:

FieldDefault ValueDescription
startTsTicket created timeTo fetch activities performed on a task within a certain duration, provide the start time and end time.

startTs indicates from date and time.
Example: 2018-08-10T05:39:51 0000

endTsCurrent timeendTs indicates to date and time.
Example: 2018-08-25T10:20:15 0000
isDescendingOrdertrueTo list the data in a descending order (high to low), provide isDescendingOrder: true, else provide false. By default, data is listed in descending order.
Example: To arrange data from 30th Oct to 1st Oct, provide isDescendingOrder: true

Sample response

{
 "results": [{
 "activity": "Task "#TASK0000001803 Update Python Version" updated by James",
 "htmlLog": [
 "<div class="ActivityLogDetails"><p class="AttributeName" > New response "time spent" added.</p><p class="AttributeName" >Time Spent (min) changed from 0 to 120</p></div>"
 ],
 "createdTime": "2018-11-01T06:22:03+0000",
 "logType": "TICKET",
 "createdBy": {
 "loginName": "James.Blake",
 "lastName": "Blake",
 "firstName": "James",
 "email": "james.blake@myorganization.com",
 "phoneNumber": "800 234-2345"
 },
 "changeLog": [{
 "attribute": "Time Spent (min)",
 "oldValue": "0",
 "newValue": "120"
 }]
 },
 {
 "activity": "Task "#TASK0000001803 Update Python Version" updated by James",
 "htmlLog": [
 "<div class="ActivityLogDetails"><p class="AttributeName" >estimatedHours changed from 12 hours to 13 hours </p></div>"
 ],
 "createdTime": "2018-11-01T06:21:50+0000",
 "logType": "TICKET",
 "createdBy": {
 "loginName": "James.Blake",
 "lastName": "Blake",
 "firstName": "James",
 "email": "james.blake@myorganization.com",
 "phoneNumber": "800 234-2345"
 }
 },
 {
 "activity": "Task "#TASK0000001803 Update Python Version" updated by James",
 "htmlLog": [
 "<div class="ActivityLogDetails"><p class="AttributeName" >Priority changed from Low to High</p><p class="AttributeName" >startDate changed to Mon, 05 Nov 2018, 06:30 PM UTC</p></div>"
 ],
 "createdTime": "2018-11-01T06:21:43+0000",
 "logType": "TICKET",
 "createdBy": {
 "loginName": "James.Blake",
 "lastName": "Blake",
 "firstName": "James",
 "email": "james.blake@myorganization.com",
 "phoneNumber": "800 234-2345"
 },
 "changeLog": [{
 "attribute": "Priority",
 "oldValue": "Low",
 "newValue": "High"
 },
 {
 "attribute": "startDate",
 "oldValue": "",
 "newValue": "Mon, 05 Nov 2018, 06:30 PM UTC"
 }
 ]
 },
 {
 "activity": "New Task "#TASK0000001803 Update Python Version" created by James",
 "createdTime": "2018-11-01T06:17:59+0000",
 "logType": "TICKET",
 "createdBy": {
 "loginName": "James.Blake",
 "lastName": "James",
 "firstName": "Blake",
 "email": "james.blake@myorganization.com",
 "phoneNumber": "800 234-2345"
 }
 }
 ],
 "totalResults": 4,
 "pageSize": 4,
 "nextPage": false,
 "startDate": "2018-10-29T12:26:27+0000",
 "endDate": "2018-11-06T12:26:27+0000",
 "descendingOrder": true
}