我一直在尝试提取任务的详细信息,以便在检索存储桶中的所有任务时获取描述。我尝试了几个查询参数。使用$expand=details
我看到响应中有一个额外的节点,但始终是null
。对于我提供的任何扩展查询参数都是如此。
以下是我正在尝试的网址:
/v1.0/planner/buckets/{BucketId}/tasks?$expand=details
我已尝试使用/beta/
端点以及相同的结果。请参阅下面我收到的结果:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.plannerTask)",
"@odata.count": 1,
"value": [{
"@odata.etag": "***"
",
"createdBy": {
"user": {
"displayName": null,
"id": "***"
}
},
"planId": "***",
"bucketId": "***",
"title": "Name",
"orderHint": "***",
"assigneePriority": "***",
"percentComplete": 0,
"startDateTime": "2017-09-15T12:00:00Z",
"createdDateTime": "2017-09-15T23:33:10.905638Z",
"dueDateTime": null,
"hasDescription": true,
"previewType": "description",
"completedDateTime": null,
"completedBy": null,
"referenceCount": 0,
"checklistItemCount": 0,
"activeChecklistItemCount": 0,
"appliedCategories": {
"category2": true
},
"assignments": {
"***": {
"@odata.type": "#microsoft.graph.plannerAssignment",
"assignedBy": {
"user": {
"displayName": null,
"id": "***"
}
},
"assignedDateTime": "2017-09-15T23:33:10.905Z",
"orderHint": ""
}
},
"conversationThreadId": null,
"id": "LeURQ5hVvU2tAP7fbbtaiWUANHup",
"details": null
}],
}
请注意,详细信息结果为null,但是,此任务确实有描述,因此应该有一些细节。我应该如何提取任务的详细信息,希望不必多次调用API?
答案 0 :(得分:1)