0

I am using Microsoft Graph to request all tasks of a Planner Plan's bucket with:

https://graph.microsoft.com/v1.0/planner/plans/{plan-id}/tasks

According to the docs, the order of the tasks should be given by the property key "orderHint", but sorting by the values does not result in the order I see in the web app. Moreover, when changing the order of tasks in the web app, the values of orderHint don't change, they seem to be static.

What's the proper way to get the order of tasks in a bucket?

4

1 回答 1

1

The order of the tasks on the bucket board is based on the orderhint field on the bucketTaskBoardFormat resource (Link: https://docs.microsoft.com/en-us/graph/api/resources/plannerbuckettaskboardtaskformat?view=graph-rest-1.0).

For further information on how to actually manipulate the orderhint fields, there is a good article that explains the nuances: https://laurakokkarinen.com/how-to-sort-tasks-using-planner-order-hint-and-microsoft-graph/

于 2019-09-25T02:37:56.180 回答