New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement, get planner by rosterId #4465
Comments
Let's make the commands consistent indeed, would you like to fix this @nicodecleyre? |
@nicodecleyre, how would you be able to get a plan by rosterId if there are more plans in said roster? |
There is only the ability to have one plan per roster and not multiple. |
Sure |
Are you sure @MathijsVerbeeck, it seems odd that the graph endpoint returns an array for it: https://learn.microsoft.com/en-us/graph/api/plannerroster-list-plans?view=graph-rest-beta&tabs=http |
I find it odd, but somewhere else I read 'A plannerRoster can contain one plan.', so you must be correct https://learn.microsoft.com/en-us/graph/api/resources/plannerroster?view=graph-rest-beta |
Graph endpoint indeed returns an array, but if you try to add multiple plans to the same roster, you are getting an error. Also in the documentation they always refer to a single plan, never multiple plans. E.g. "when you remove the roster, the plan and its tasks are also removed". |
Right now the command
planner plan get
retrieves the plan when you provide therosterId
next toid
ortitle
. Let's enhance the command so you can retrieve the plan just by providing therosterId
option.The options
ownerGroupId
andownerGroupName
optionset should only run whentitle
is provided.Example:
m365 planner plan get --rosterId "RuY-PSpdw02drevnYDTCJpgAEfoI"
instead of
m365 planner plan get --title PlannerTitle --rosterId "RuY-PSpdw02drevnYDTCJpgAEfoI"
The text was updated successfully, but these errors were encountered: