AnsweredAssumed Answered

Getting the assigner name in a task

Question asked by tap007 on Sep 22, 2014
Latest reply on Sep 23, 2014 by martin.grofcik
I am developing a vacation request template where employee (kermit) makes a leave request. The request then shows up in manager's (gonzo) task list. We will be showing the task list of gonzo by using rest call. I have to show who has sent this leave request in the task list. So basically I want to the the assignee of the previous task. The rest call I use doesn't give me this information. How can I get this using REST:
My request is:

it gives me response:
    "data": [
            "id": "11400",
            "url": "http://localhost:8082/activiti-rest/service/runtime/tasks/11400",
            "owner": null,
            "assignee": "gonzo",
            "delegationState": null,
            "name": "Handle vacation request",
            "description": "kermit would like to take 4 day(s) of vacation (Motivation: eeeee).",
            "createTime": "2014-08-21T18:34:00.943+05:30",
            "dueDate": null,
            "priority": 50,
            "suspended": false,
            "taskDefinitionKey": "handleRequest",
            "tenantId": "",
            "category": null,
            "formKey": null,
            "parentTaskId": null,
            "parentTaskUrl": null,
            "executionId": "11387",
            "executionUrl": "http://localhost:8082/activiti-rest/service/runtime/executions/11387",
            "processInstanceId": "11387",
            "processInstanceUrl": "http://localhost:8082/activiti-rest/service/runtime/process-instances/11387",
            "processDefinitionId": "vacationRequest:1:11386",
            "processDefinitionUrl": "http://localhost:8082/activiti-rest/service/repository/process-definitions/vacationRequest%3A1%3A11386",
            "variables": []
    "total": 1,
    "start": 0,
    "sort": "id",
    "order": "asc",
    "size": 1

In the response parentTaskId is coming as null. Is there some other way to achieve the same.