Get details of a specific task by its ID.