How do I update a planner task in Graph API?

Charlie Halford 10 Reputation points
2023-03-28T14:39:40.3033333+00:00

I'm trying to update a Planner task through the Graph API, adding comments to it from an external source. The API documentation does not seem to include the ability to access comments (looking here https://learn.microsoft.com/en-us/graph/api/resources/plannertask?view=graph-rest-1.0).

I saw a YouTube video that shows comments being updated with the API, using the Group Conversation API. However, when I try and use this API to find the conversations in my group, where I'd expect to see my task conversations listed (GETing https://graph.microsoft.com/v1.0/groups/{group-id}/threads), my task comments do not show up. As I can't see this in API documentation, I would like to know if this is expected, or if I have an issue with my Office 365 sandbox.

Thank you!

Microsoft Security | Microsoft Graph
{count} vote

1 answer

Sort by: Most helpful
  1. HarmeetSingh7172 4,831 Reputation points
    2023-03-28T23:47:21.8666667+00:00

    Hello Charlie Halford,

    Thanks for reaching out!

    As per my analysis, the conversationThreadID would be null when there is no actual comment on an existing planner task as comments are not automatically created when the planner task is created via Graph API.

    In case someone actually comments on the planner task, the response of Get Planner Task Graph API will have a unique conversationThreadID. This conversationThreadID can be used to reply to the existing comment. Refer Reply to Conversation thread Graph API.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.