-
Notifications
You must be signed in to change notification settings - Fork 103
Open
Labels
Triaged-Unassignedissue that is triaged but unassignedissue that is triaged but unassigned
Description
Describe the bug
I try to requesting ToDo tasks by MsGraph API from some list and filtering criteria:
- get all tasks that have either Start or Due dates
- and their Title contains some specific text (
"dates"in example).
The request is https://graph.microsoft.com/v1.0/me/todo/lists/{myListId}/tasks?$filter=contains(title, 'dates') and (startDateTime/dateTime ne null or dueDateTime/dateTime ne null)
Ms Graph processes this request incorrectly.
It returns result that ignores contains(title, 'dates') criteria and filters by startDateTime/dateTime ne null or dueDateTime/dateTime ne null only.
To Reproduce
Steps to reproduce the behavior:
- You need to have some ToDo tasks list with tasks that have setup start or due dates. One of the task should have "dates" in its title.
- Go to Graph Explorer, login with you account that has access to you ToDo tasks list and provide required rights (Tasks.ReadWrite)
- Execute request
https://graph.microsoft.com/v1.0/me/todo/lists/{myListId}/tasks?$filter=contains(title, 'dates') and (startDateTime/dateTime ne null or dueDateTime/dateTime ne null)where{myListId}is Id of your tasks list - See error. Result will ignore
contains(title, 'dates')criteria and returns tasks filtered bystartDateTime/dateTime ne null or dueDateTime/dateTime ne nullonly.
Expected behavior
MsGraph Todo Service should correctly process $filter criteria and returns the tasks that suits only.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Triaged-Unassignedissue that is triaged but unassignedissue that is triaged but unassigned