Setting Item Priority and Item Section doesn't seem to do anything #52
-
| Hi, I'm trying to set a default section and priority on item updates. Section seems to want the string name of the section, and priority seems to want a Todoist.Net.Models.Priority enum. I set these things and I don't see the expected result in the synched task. I am able to update content, description, and labels correctly. Anybody else seeing this behavior? Thanks Mike | 
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
| Hi Mike, You will find a note left in their documentation on updating items: 
 As for priorities, it's important to note that in Todoist API, values are reversed (1 to 4 means 4 to 1). You will find it described under the Update an item section as well: 
 So, if you tried to update a task with the enum value  | 
Beta Was this translation helpful? Give feedback.
-
| Ahmed thank you for all the pointers you have given me. Both of these suggestions worked- I was thinking of "section" being an assignment and not a move. As far as the reversed priority values go, that's just bonkers. Thanks again for all your help - Mike | 
Beta Was this translation helpful? Give feedback.
Hi Mike,
Currently, Todoist API doesn't support moving tasks to new sections with the
item_updatecommand, instead, they made another command just for moving tasks to new projects or sections calleditem_move, which you can use by callingItemsCommandService.MoveAsyncmethod.You will find a note left in their documentation on updating items:
As for priorities, it's important to note that in Todoist API, values are reversed (1 to 4 means 4 to 1). You will find it described under the Update an item section as well: