Forum Discussion
Robin Vermeirsch
Sep 06, 2016Copper Contributor
How can i add a comment using GRAPH API in Planner
Hi, I'm having issues adding comments to tasks in planner using the graph api. I tried looking at the conversation id and tried posting to corresponding O365 but had no succes on adding comments ...
Don DeCarlo
Oct 19, 2016Copper Contributor
Yes I would like this answer too. It's not clear from the MetaData in Graph where the description field resides. Doesn't seem to be part of the Task but there is a "hasDescription" field set to true when a description is added through the UI.
Oct 19, 2016
Maybe SanthoshB1 could help here
- SanthoshB1Oct 19, 2016Bronze ContributorYou need to use POST /groups/<id>/threads to post the conversation
https://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/group_post_threads
To update that conversation to task use conversationThreadId
https://graph.microsoft.io/en-us/docs/api-reference/beta/api/task_update- Robin VermeirschOct 19, 2016Copper ContributorUnfortunately getting them works, but the post doe not. It adds them to the office 365 group but they are not visible in the planner
- Christophe DIONNov 30, 2017Copper Contributor
Hello,
Sorry "A year later", I was looking to do the same thing and find this post.
I used https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/conversationthread_reply to understand how to publish a new comment from Graphwith POST https://graph.microsoft.com/v1.0/groups/[GroupID]/threads/[ConversationID]/reply
And body content like
{ "post": { "body": { "contentType": "1", "content": "Hello from Graph" } } }
To find the conversationID i use:
https://graph.microsoft.com/v1.0/groups/[GroupID]/threadsor
https://graph.microsoft.com/v1.0/Planner/Plans/[PlanId]/tasks
or
https://graph.microsoft.com/v1.0/Planner/tasks/[TaskID]To find PlanID or GroupId, just browse to you planner, it's in the URL
Let's play with this :)
/Christophe