get tasks based on all,private,public and user are done