Hi I am trying to build a Dashboard that show summary of what happens in a Planner Plan, Calendar events and SharePoint files etc. I want to show users' task in different tables. I have managed to authorize and get the user list and get the all tasks from a plan by following the documentation. But the tasks I get returns something like this. I can see the task is assigned to "9d2e533d-6e8e-xxx-8959-846xxxbe192ab" but how do I get/print this? I can get the task title by using getTitle() method. But how do I getthe assignee? Or is there a better way to get tasks based on users?
{
"@odata.etag": "W/\"JzEtVGFzayxxBAxAQxxxEBAWCc=\"",
"planId": "UeRhlCyHxxxxxk3CpgABpFg",
"bucketId": "GWqGxxxxak-YzYxxx0-bm-5xxxxzZ9",
"title": "Arge 2",
"orderHint": "85xxx467xxxx41871P|",
"assigneePriority": "",
"percentComplete": 50,
"startDateTime": null,
"createdDateTime": "2020-06-14T12:54:41.8747394Z",
"dueDateTime": null,
"hasDescription": false,
"previewType": "automatic",
"completedDateTime": null,
"completedBy": null,
"referenceCount": 0,
"checklistItemCount": 0,
"activeChecklistItemCount": 0,
"conversationThreadId": null,
"id": "8BxxxtlHQxxxGPR0xxxgAMfWV",
"createdBy": {
"user": {
"displayName": null,
"id": "75c90cdf-a9fc-4f55-860a-87076b9a31ef"
}
},
"appliedCategories": {},
"assignments": {
"9d2e533d-6e8e-xxx-8959-846xxxbe192ab": {
"@odata.type": "#microsoft.graph.plannerAssignment",
"assignedDateTime": "2020-06-14T13:02:07.0513638Z",
"orderHint": "858609xxxxx8441xxx388P#",
"assignedBy": {
"user": {
"displayName": null,
"id": "75cx0cdf-a9fc-4xxx-860a-87xxxx9a31ef"
}
}
}
}
},