I have run into this before when trying to bulk close tasks. I never figured out what exactly caused it to happen, but the task was still updated from my PATCH operation. Can you check the task again and see if it updated despite the NullPointerException error?
Additionally, as a helpful tip, since completing a task requires you to update both the completionStatus and the completed fields, you can bundle them into one operation instead of making 2 separate calls as described in the documentation you referenced. I tested this body out and it works fine.
It is definitely some odd behavior, but I’m glad your updates still worked also!
@colin_mckibben Is this something that would be worth opening a ticket for? It kind of seems like a bug, but I wanted to see if you had any thoughts on the root cause of this in case it was expected behavior. Yan and I have both noticed that when running PATCH operations to update tasks, a NullPointerException error is sometimes returned with a 500 code, but the PATCH operation still passes successfully for updating the task.
Yes, this is worth an investigation to get it fixed. What would help is if you can reproduce the issue and tell us either the trace ID, if there is one, or when you executed the API and in what tenant so we can check the logs. You can submit your bug report to Bugs and I can forward it on to the appropriate team.