{"id":462,"date":"2017-04-12T00:00:00","date_gmt":"2017-04-12T00:00:00","guid":{"rendered":"http:\/\/officedevblogs.wpengine.com\/?p=462"},"modified":"2017-04-12T00:00:00","modified_gmt":"2017-04-12T00:00:00","slug":"changes-to-planner-tasks-api","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/changes-to-planner-tasks-api\/","title":{"rendered":"Changes to Planner Task API"},"content":{"rendered":"<div id=\"body-content\">\n<p>Hello, we are making a few changes to the Planner Task API on the Microsoft Graph REST API Beta endpoint.&nbsp; These changes add support for recently released features (multi-assign tasks) and puts us on a path to finalize the initial version of the Planner API and move it from Beta to V1.0.&nbsp; These changes will be available on the Beta endpoint starting on April 13, 2017.&nbsp;<\/p>\n<h3>The changes to the Planner API include:<\/h3>\n<p style=\"padding-left: 30px\"><strong>1. New \/planner\/ segment for all Planner resources<\/strong><\/p>\n<p style=\"padding-left: 30px\">This update will add a \/planner\/ segment to every URL.&nbsp;This segment is used for organizational purposes only and does not contain usable properties.&nbsp;The follow table shows the changes to URLs.&nbsp;<\/p>\n<table style=\"border-color: #030202;padding-left: 60px\" border=\"1\">\n<tbody>\n<tr>\n<td width=\"292\" style=\"width: 450px\">\n<p style=\"padding-left: 30px\"><strong>Old URLs<\/strong><\/p>\n<\/td>\n<td width=\"284\" style=\"width: 450px\">\n<p style=\"padding-left: 30px\"><strong>New URLs<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"292\">\n<p style=\"padding-left: 30px\">\/plans<\/p>\n<\/td>\n<td width=\"284\">\n<p style=\"padding-left: 30px\">\/planner\/plans<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"292\">\n<p style=\"padding-left: 30px\">\/buckets<\/p>\n<\/td>\n<td width=\"284\">\n<p style=\"padding-left: 30px\">\/planner\/buckets<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"292\">\n<p style=\"padding-left: 30px\">\/tasks<\/p>\n<\/td>\n<td width=\"284\">\n<p style=\"padding-left: 30px\">\/planner\/tasks<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"292\">\n<p style=\"padding-left: 30px\">\/user\/id\/plans<\/p>\n<\/td>\n<td width=\"284\">\n<p style=\"padding-left: 30px\">\/user\/id\/planner\/plans<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"292\">\n<p style=\"padding-left: 30px\">\/user\/id\/tasks<\/p>\n<\/td>\n<td width=\"284\">\n<p style=\"padding-left: 30px\">\/user\/id\/planner\/tasks<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"292\">\n<p style=\"padding-left: 30px\">\/groups\/id\/plans\/<\/p>\n<\/td>\n<td width=\"284\">\n<p style=\"padding-left: 30px\">\/groups\/id\/planner\/plans\/<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong><\/strong><\/p>\n<p><b><\/b><\/p>\n<p><b><\/b><\/p>\n<p style=\"padding-left: 30px\"><strong>2. API Support for tasks assigned to multiple people<\/strong><\/p>\n<p style=\"padding-left: 30px\">Planner <a href=\"https:\/\/.office.com\/2017\/04\/03\/assigning-multiple-users-task-now-possible-microsoft-planner\/\">recently announced<\/a> support for assigning a task to multiple people.&nbsp;To support this in the API, the task&rsquo;s assignedTo field will be removed and replaced with an open type that represents a collection of assignments.&nbsp;For more information, see <a href=\"https:\/\/developer.microsoft.com\/graph\/docs\/api-reference\/beta\/resources\/plannerassignments\">plannerAssignments<\/a>.<\/p>\n<p> As part of this change, the taskBoardTaskFormat will be split into 3 distinct types representing the views supported by the Board in Planner clients.&nbsp; For more information, see <a href=\"https:\/\/developer.microsoft.com\/graph\/docs\/api-reference\/beta\/resources\/plannerAssignedToTaskBoardTaskFormat\">plannerAssignedToTaskBoardTaskFormat<\/a>, <a href=\"https:\/\/developer.microsoft.com\/graph\/docs\/api-reference\/beta\/resources\/plannerBucketTaskBoardTaskFormat\">plannerBucketTaskBoardTaskFormat<\/a>, and <a href=\"https:\/\/developer.microsoft.com\/graph\/docs\/api-reference\/beta\/resources\/plannerProgressTaskBoardTaskFormat\">plannerProgressTaskBoardTaskFormat<\/a>.<strong><\/strong><strong><\/strong><\/p>\n<p><b><\/b><\/p>\n<p style=\"padding-left: 30px\"><strong>3. Service generated order hints<\/strong><\/p>\n<p style=\"padding-left: 30px\">Clients can sort Planner objects by their order hint.&nbsp; Previously, clients could set order hints to any string value.&nbsp; With this update, the Planner service will now generate order hints for all objects and require clients to follow the format and scheme described in <a href=\"https:\/\/developer.microsoft.com\/graph\/docs\/api-reference\/beta\/resources\/planner_order_hint_format\">Using Order Hints in Planner<\/a>.&nbsp;&nbsp;<\/p>\n<p><b><\/b><\/p>\n<p style=\"padding-left: 30px\"><b><strong>4. Additional properties on task resource<\/strong><\/b><\/p>\n<p style=\"padding-left: 30px\">We&rsquo;ve added the following properties to the task resource that provide summary information on collections in taskDetails:<\/p>\n<ol>\n<ul>\n<li>activeChecklistItemCount: number of active checklist items<\/li>\n<li>checklistItemCount: total number of checklist items<\/li>\n<li>referenceCount: total number of external references for tasks, such as attachments and links<\/li>\n<\/ul>\n<\/ol>\n<p style=\"padding-left: 30px\">&nbsp;<b><strong>5. Sortable ETags<\/strong><\/b><\/p>\n<p style=\"padding-left: 30px\">\n<p style=\"padding-left: 30px\">ETags for all objects will now be sortable by the ordinal values of its characters.&nbsp; You can compare the ETag values to determine which object versions are newest, with the newer versions sorting after older ones.<\/p>\n<p style=\"padding-left: 30px\">\n<p style=\"padding-left: 30px\"><strong>6. Read-only user identity fields will return an identitySet instead of a string<\/strong><\/p>\n<p style=\"padding-left: 30px\">This change is limited to read only fields that represent users. Editable fields will not be impacted.&nbsp; The impacted fields include:<\/p>\n<ul>\n<ul>\n<li>completedBy<\/li>\n<li>createdBy<\/li>\n<li>modifiedBy<\/li>\n<li>assignedBy<\/li>\n<\/ul>\n<\/ul>\n<p><p>Thank you for using and providing feedback on the Planner Task API, and happy coding.&nbsp;<\/p>\n<p><p><b><\/b><\/p>\n<h3>FAQ:<\/h3>\n<p style=\"padding-left: 30px\"><strong>What happens to the existing Planner Task API? When will it stop working?<\/strong><\/p>\n<p style=\"padding-left: 30px\">The current Planner API (without the \/planner\/ segment) is now deprecated and will be removed on May 26, 2017.&nbsp;Client applications must be updated before May 26, 2017 or they will no longer function.&nbsp; <\/p>\n<p> Until then, basic functionality in the current API will continue to work side-by-side with the new API, to help transition applications to the new API.&nbsp;However, applications using the current Planner API may cause issues such as:<\/p>\n<p style=\"padding-left: 90px\">o&nbsp;&nbsp; Removing additional assignees on a multi-assigned task<\/p>\n<p style=\"padding-left: 90px\">o&nbsp;&nbsp; Specifying an incorrect orderHint<\/p>\n<p style=\"padding-left: 60px\">\n<p style=\"padding-left: 30px\"><strong>Why add the \/planner\/ segment to the API?<\/strong><\/p>\n<p style=\"padding-left: 60px\">The new API introduces several breaking changes as described above. The segment helps existing applications continue to function while transitioning to the new API.&nbsp; <\/p>\n<p> In the coming months, we plan to make other service-specific Task related APIs available on Microsoft Graph.&nbsp;This segment provides a way to distinguish between each service&rsquo;s API surface.&nbsp; <\/p>\n<p> It is important to note that we are also working on a converged Task API story for Microsoft and will have more details to share in the future.&nbsp;<\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Hello, we are making a few changes to the Planner Task API on the Microsoft Graph REST API Beta endpoint.&nbsp; These changes add support for recently released features (multi-assign tasks) and puts<\/p>\n","protected":false},"author":69076,"featured_media":25159,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-462","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-graph"],"acf":[],"blog_post_summary":"<p>Hello, we are making a few changes to the Planner Task API on the Microsoft Graph REST API Beta endpoint.&nbsp; These changes add support for recently released features (multi-assign tasks) and puts<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/users\/69076"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=462"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/462\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/25159"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}