嗨,我正在尝试构建一个仪表板,显示 Planner 计划、日历事件和 SharePoint 文件等中发生的事情的摘要。我想在不同的表格中显示用户的任务。我已设法授权并获取用户列表,并按照文档从计划中获取所有任务。但是我得到的任务返回的是这样的。我可以看到任务分配给“9d2e533d-6e8e-xxx-8959-846xxxbe192ab”,但我如何获取/打印这个?我可以使用 getTitle() 方法获取任务标题。但是我如何获得受让人?或者有没有更好的方法来根据用户获取任务?
{
"@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"
}
}
}
}
},