remove unneeded conditions for tasks endpoint