Toggle menu

GetTasks

Request Parameters

GetTasks Request Schema
 

Example Request:

{
    "debug": false,
    "options": {
        "includePoints": true
    },
    "taskRefs": [{
        "type": "Task",
        "value": [28764934],
        "key": "Id"
    }]
}

Response Parameters

GetTasks Response Schema 1
 

GetTasks Response Schema 2
 

GetTasks Response Schema 3
 

Example Response:

{
    "jsonrpc": "2.0",
    "id": 22,
    "result": {
        "response": [{
            "guid": "00000000-0000-0000-0000-000000000000",
            "id": 28764934,
            "data": [],
            "allocation": {
                "roundGroupId": 1225,
                "roundGroupName": "TEAM 07 (WK 2)",
                "roundId": 7703,
                "roundInstanceRef": {
                    "key": "Handle",
                    "type": "RoundInstance",
                    "value": [7703, 6046]
                },
                "roundLegId": 306317,
                "roundLegInstanceRef": {
                    "key": "Handle",
                    "type": "RoundLegInstance",
                    "value": [306317, 6046]
                },
                "roundLegName": "THAT AVENUE AA1",
                "roundName": "4 Thursday",
                "type": "RoundLegInstance"
            },
            "completedDate": "2016-07-21T07:10:35+01:00",
            "currentScheduledDate": "2016-07-21T06:00:00+01:00",
            "originalScheduledDate": "2016-07-21T00:00:00+01:00",
            "ref": {
                "key": "Handle",
                "type": "Task",
                "value": [8706400, 6046]
            },
            "resolution": {
                "name": "Not presented",
                "ref": {
                    "key": "Id",
                    "type": "ResolutionCode",
                    "value": [66]
                },
                "source": "Task"
            },
            "serviceId": 92,
            "serviceTaskId": 2034413,
            "serviceTaskScheduleId": 8706400,
            "serviceUnitId": 5189581,
            "source": {
                "key": "Id",
                "type": "ServiceTask",
                "value": [2034413]
            },
            "state": {
                "coreState": "Closed",
                "name": "Not Complete",
                "ref": {
                    "key": "Id",
                    "type": "TaskState",
                    "value": [880]
                },
                "source": "Task"
            },
            "taskTypeId": 173,
            "timeBand": null,
            "points": [{
                "description": "1 FAKE ST REET, TOWN, PLACE, AA1 1AA",
                "isPointOfService": true,
                "isServicedPoint": true,
                "pointRefs": [{
                    "key": "Id",
                    "type": "PointAddress",
                    "value": [932691]
                }, {
                    "key": "Uprn",
                    "type": "PointAddress",
                    "value": ["100080738480"]
                }]
            }]
        }],
        "success": true
    }
}

Last modified on February 04, 2021

Share this page

Facebook icon Twitter icon email icon

Print

print icon