Suggestion to a new command.
Planner is one of popular tool used by most of the organizations to manage their project tasks. I would like to cover the areas in planner. To start with, I suggest to list the tasks of a user in planner.
command planner tasks listtasks --userid <useremail/userid>
userid: Either user email or the user id. Optional, if no values passed, it will list current user tasks.
Graph API docs: https://docs.microsoft.com/en-us/graph/api/planneruser-list-tasks?view=graph-rest-1.0&tabs=cs
Requests to be used: /me/planner/tasks and /users/{id}/planner/tasks
Please validate the new command and assign it to me. I'm ready to start my first contribution to office365-cli.
Hey @JayakumarB. Appreciate your help and taking the initiative! To match the current naming convention:
graph planner task list. Currently, we're still grouping tasks by the API they use. We're dropping this convention for v2, which is in early preview, but for consistency with the current v1, let's prefix the command with graphgraph planner task list --userid [userid] --useremail [useremail]. Both are optional and when neither is specified, the command will retrieve tasks of the current user through the /me/planner/tasks API, right?Awesome addition and looking forward to your PR! Please don't hesitate to reach out if you have any questions.
@waldekmastykarz Thank you for accepting the request. I will make sure to follow the naming guidelines as you said.
Hi @waldekmastykarz ,
I'm making progress in the command and referred other commands to clarify my doubts. Which alerts about this commands options. It's better to mention userName instead of useremail. Because we need userprincipalname to process this command, not email. In some cases useremail and userprincipalname will be different.
So the command will be graph planner task list --userid [userid] --userName [userName]
Makes perfect sense. Thank you for the update.