i am very new to MS Graph and Planner but i would like to generate a script where i define a Plan with mutiple tasks and i only have to specify the startDateTime of the first Task, so the dueDateTimes will be calculated automatically for each task.
First how to create multiple tasks in one script?
How can i calculate and modify the dueDateTime type?
POST https://graph.microsoft.com/v1.0/planner/tasks
Content-type: application/json
Content-length: 285
{
"planId": "PLAN1",
"bucketId": "BUCKETID",
"title": "New Task1",
"startDateTime1": "2021-07-01T10:00:00Z",
"dueDateTime1": "'startDatetime1+15days'",
"assignments": {}
}
{
"planId": "PLAN1",
"bucketId": "BUCKETID2",
"title": "New Task2",
"startDateTime2": "'dueDateTime1+10days'",
"dueDateTime2": "'startDateTime2+10days'",
"assignments": {}
}
....(adding 8Tasks all Dates depending on the first startDate)
Hope this example with some pseudo-code helps
Thank you very much in advance
Regards vicces